search for: network_id

Displaying 16 results from an estimated 16 matches for "network_id".

2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
...bset[j] corresponds + # to ip_addresses[j] + ip_counter = 0 params[:nics] = [] + unless params[:networks].nil? - params[:networks].each { |network, id| - params[:nics].push({ :mac => params[("nic_"+network.to_s).intern], - :network_id => network, - :bandwidth => 0}) + (0...params[:networks].length).each { |i| + + network_id = params[:networks][i] + unless network_id.nil? || network_id == "" + nic = { :mac => params[:macs][i], + :network_id...
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 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
2010 Aug 25
2
[PATCH] Virtio support
...work => nic.network, + :virtio => nic.virtio) if(nic.network.boot_type.proto == 'static') nnic.ip_addresses << IpAddress.new(:address => nic.ip_address) @@ -216,7 +229,9 @@ class VmController < ApplicationController network_id = params[:networks][i] unless network_id.nil? || network_id == "" nic = { :mac => params[:macs][i], - :network_id => network_id, :bandwidth => 0 } + :network_id => network_id, + :bandwidth =&g...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...boot_type.proto == 'static') + nnic.ip_addresses << IpAddress.new(:address => nic.ip_address) + end + @nics.push nnic + + net_conditions += (net_conditions == "" ? "" : " AND ") + + "id != " + nic.network_id.to_s + } + end + + networks = Network.find(:all, :conditions => net_conditions) + + networks.each{ |net| + nnic = Nic.new(:mac => Nic::gen_mac, :network => net) + if(net.boot_type.proto == 'static') + nnic.ip_addresses << IpAddress.new(:address => &...
2009 Oct 06
0
[PATCH server] new host networking wui
...v class="host_network_table_device_column host_network_table_aligned_column"> + <%= nic.interface_name + " " + nic.mac %> + </div> + + <div class="host_network_table_network_column"> + <select name="nics[<%= nic.id %>][network_id]" + 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 == '...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...gt; true, - :alert => alert } - rescue Exception => e - render :json => { :object => "network", :success => false, - :errors => - @network.errors.localize_error_messages.to_a } + def delete + network_ids = params[:network_ids].split(",") + successes = [] + failures = {} + network_ids.each do |network_id| + begin + svc_destroy(network_id) + successes << @network + rescue PermissionError => perm_error + failures[@network] = perm_error.messag...
2010 Sep 21
1
[PATCH] Introduce ability to select any kind of nic model, not just default or virtio.
...ationController @nics.push nnic } + @nic_models = Nic::NIC_MODELS + end # merges vm / network parameters as submitted on the vm form @@ -241,7 +243,7 @@ class VmController < ApplicationController nic = { :mac => params[:macs][i], :network_id => network_id, :bandwidth => 0, - :virtio => params[:virtio][i.to_s] } + :model => params[:models][i] } if(Network.find(network_id).boot_type.proto == 'static') # FIXME make this able...
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
...> 0 %> <div id="vm_network_config_header"> <div id="vm_network_config_header_network">Network:</div> @@ -313,5 +316,25 @@ ${htmlList(pools, id)} $('#vm_network_config_select_<%= i %>').val("<%= @vm.nics[i].network_id %>").trigger('change'); <% } end %> + + // wire up provision select box to autoselect a network if necessary + $('#vm_provisioning_and_boot_settings').bind('change', function(e){ + + // if at least one network is already sele...
2009 May 20
1
[PATCH server] don't add nil key to failures hash for PartialSuccessError handling.
...lers/network_controller.rb +++ b/src/app/controllers/network_controller.rb @@ -81,7 +81,7 @@ class NetworkController < ApplicationController successes << @network # PermissionError and ActionError are expected rescue Exception => ex - failures[@network.nil? network_id : @network] = ex.message + failures[@network.nil? ? network_id : @network] = ex.message end end unless failures.empty? diff --git a/src/app/controllers/permission_controller.rb b/src/app/controllers/permission_controller.rb index 9a62c62..da5286b 100644 --- a/src/app/control...
2009 Jun 19
0
[PATCH server] add toggable sections to vm form
...loat:left;"> - <%= text_field_with_label "VNIC:", "vm", "vnic_mac_addr", {:style=>"width:250;"} %> - </div> - <div style="float:left;"> - <%= select_with_label "Network:", 'vm', 'network_id', @networks.insert(0, ""), :style=>"width:250px;" %> + <div class="form_heading"> + <%= link_to image_tag("Sort_right_11.png") + "Network", "#", + :id => "vm_network_section_link" %&...
2009 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
...NET).to_s + unless i == sgatewayi || i == sbcasti || used_addresses.include?(ip) + return ip + end + } + + nil + end + + private + # internal helper method, get the range of numeric addresses for this + # network address + def _numeric_range + return [] unless network_id != nil + netaddress_ip = IPAddr.new(address) + netmask_ip = IPAddr.new(netmask) + firstaddress = netaddress_ip.to_i + 1 + lastaddress = netaddress_ip.to_i + (~netmask_ip).to_i - 1 + (firstaddress...lastaddress+1) + end + + end diff --git a/src/app/models/network.rb b/src/app/m...
2010 Sep 02
1
[PATCH 1/1] Introduce an option to always pxe-boot a vm.
...= Vm::PXE_OPTION_VALUE %>" ||e.target.value == "<%= Vm::PXE_ALWAYS_OPTION_VALUE %>" || e.target.value.indexOf("<%= Vm::PROFILE_PREFIX %>@<%= Vm::COBBLER_PREFIX %>") == 0)){ $('#vm_network_config_select_0').val(nics[0].network_id).trigger('change'); } diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb index 1dfd74f..6f699d2 100755 --- a/src/task-omatic/taskomatic.rb +++ b/src/task-omatic/taskomatic.rb @@ -415,9 +415,17 @@ class TaskOmatic end net_interfaces.push({ :m...
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
...<div class="clear_row"></div> <div class="clear_row"></div> <div style="float:left;"> @@ -47,12 +57,11 @@ <div style="float:left;"> <%= select_with_label "Network:", 'vm', 'network_id', @networks.insert(0, ""), :style=>"width:250px;" %> </div> - <div style="clear:both;"></div> - <div class="clear_row"></div> <div class="clear_row"></div> <%= check_box_t...
2004 May 11
1
W2k joining a domain controlled by samba 3.0.2a (PDC)
...:x:513: 3. pam-ldap works: user 'lenec' can access samba shares AND can change his password from a W98 client machine while logged-in to 'domain' (a tree-field login window when loggin into W98). Now, when I test this with W2K: selecting "My_Comp-> (right-click)Propert-> Network_ident-> (second-button-from-top)Properties ->(lower-box/I-select)Domain=WORKGROUP"; I'm asked then for a domain administrator login and password. So, the questions are: (I) Who is this? Where in SAMBA configration I tell samba that THIS is domain administrator (capable of doing the abov...
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...<div class="clear_row"></div> <div class="clear_row"></div> <div style="float:left;"> @@ -47,15 +65,14 @@ <div style="float:left;"> <%= select_with_label "Network:", 'vm', 'network_id', @networks.insert(0, ""), :style=>"width:250px;" %> </div> - <div style="clear:both;"></div> - <div class="clear_row"></div> <div class="clear_row"></div> - <%= check_box_t...