search for: physicalnetwork

Displaying 8 results from an estimated 8 matches for "physicalnetwork".

Did you mean: physical_network
2009 May 15
0
[PATCH server] use service layer for Network controller.
...} format.xml { render :xml => @network.to_xml } end - end + end - def new + def new + svc_new() @boot_types = BootType.find(:all) @usage_types = Usage.find(:all) render :layout => 'popup' - end + end - def create - begin - @network = PhysicalNetwork.new(params[:network]) if params[:network][:type] == 'PhysicalNetwork' - @network = Vlan.new(params[:network]) if params[:network][:type] == 'Vlan' - @network.save! - alert = "Network was successfully created." - render :json => { :object => "netw...
2009 Aug 05
1
[PATCH server] associated nics w/ network base class as it is in the db
...esence_of :name, diff --git a/src/app/models/physical_network.rb b/src/app/models/physical_network.rb index 52a748a..f50eeff 100644 --- a/src/app/models/physical_network.rb +++ b/src/app/models/physical_network.rb @@ -17,8 +17,6 @@ # also available at http://www.gnu.org/copyleft/gpl.html. class PhysicalNetwork < Network - has_many :nics - def is_destroyable? nics.empty? end diff --git a/src/app/models/vlan.rb b/src/app/models/vlan.rb index 217a89c..e34dddc 100644 --- a/src/app/models/vlan.rb +++ b/src/app/models/vlan.rb @@ -19,8 +19,6 @@ class Vlan < Network has_many :bondings -...
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...+ @networks.collect { |network| render(network) } + end + + def render(network) + obj = to_qmf(network, :propmap => { :proto => nil}) + obj['proto'] = network.boot_type.proto + puts "network.type is #{@network.type}" + if @network.type == 'PhysicalNetwork' + obj['impl'] = @agent.encode_id(PhysicalNetworkImplController.schema_class.id, @network.id) + elsif @network.type == 'Vlan' + obj['impl'] = @agent.encode_id(VlanImplController.schema_class.id, @network.id) + end + return obj + end + end...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...fied network + # loop through each nic/network assigned to vm, + # finding necessary host devices to bridge - net_device = "breth0" # FIXME remove this default value at some point, tho net_device can't be nil - unless db_vm.network.nil? - if db_vm.network.class == PhysicalNetwork - device = Nic.find(:first, - :conditions => ["host_id = ? AND physical_network_id = ?", - db_host.id, db_vm.network_id ]) - net_device = "br" + device.interface_name unless device.nil? + n...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with multiple networks and vice-versa. updated patchset so as to be applicable against current oVirt server HEAD these patches may be applied in any order, they all need to be pushed together
2009 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
...0 + ip_addresses[0].first_available_address(used_addresses) + end end diff --git a/src/app/models/physical_network.rb b/src/app/models/physical_network.rb index f50eeff..17a325e 100644 --- a/src/app/models/physical_network.rb +++ b/src/app/models/physical_network.rb @@ -20,4 +20,10 @@ class PhysicalNetwork < Network def is_destroyable? nics.empty? end + + # generate an ip address for this network based on associated ip and + # addresses already associated w/ nics + def gen_address + super(nics.collect { |n| n.ip_address}) + end end diff --git a/src/app/models/vlan.rb b/src/app/m...
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server frontend, backend, and tests components, permitting vms to be associated with multiple networks and vice versa. Also included are two patches which are required for the frontend bits; a patch adding collapsable sections to the vm form, which in itself depends on the second patch that provides default values for the cpu and memory vm table fields
2009 Oct 06
0
[PATCH server] new host networking wui
...]" + id="host_network_table_select_net_nic_<%= nic.id %>" + class="host_network_table_select_net"> + + <option value="">Select a network...</option> + <% @networks.find_all { |net| net.type.to_s == 'PhysicalNetwork' }.each { |net| %> + <option value="<%= net.id %>" + <% if net.id == nic.network_id %>selected<% end %> > + <%= net.name %> + </option> + <% } %> + </select> + + <d...