Displaying 4 results from an estimated 4 matches for "network_condit".
2009 May 15
0
[PATCH server] use service layer for Network controller.
...bject => "ip_address", :success => true, :alert => alert}
+ end
########################## NICs related actions
- def edit_nic
- @nic = Nic.find(params[:id])
- @network = @nic.physical_network
-
- # filter out networks already assigned to nics on host
- network_conditions = []
- @nic.host.nics.each { |nic|
- unless nic.physical_network.nil? || nic.id == @nic.id
- network_conditions.push(" id != " + nic.physical_network.id.to_s)
- end
- }
- network_conditions = network_conditions.join(" AND ")
-
- @networ...
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
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
.../src/app/services/network_service.rb
@@ -205,13 +205,13 @@ module NetworkService
def svc_modify_nic(id)
authorize
@nic = Nic.find(id)
- @network = @nic.physical_network
+ @network = @nic.network
network_options
# filter out networks already assigned to nics on host
network_conditions = []
- @nic.host.nics.each { |nic|
- unless nic.physical_network.nil? || nic.id == @nic.id
- network_conditions.push(" id != " + nic.physical_network.id.to_s)
+ @nic.parent.nics.each { |nic|
+ unless nic.network.nil? || nic.id == @nic.id
+ network_conditi...