Displaying 2 results from an estimated 2 matches for "nic_ids".
Did you mean:
nic_id
2009 Oct 06
0
[PATCH server] new host networking wui
...lete(:ip_address)
+ end
+ }
+ params[:bondings].each { |id,b|
+ unless b[:ip_address].nil?
+ # FIXME make this able to be v4 or v6 address
+ b[:ip_addresses] = [IpV4Address.new({ :address => b[:ip_address] })]
+ b.delete(:ip_address)
+ end
+
+ if b[:nic_ids].nil? || b[:nic_ids].size == 0
+ b[:nics] = []
+ else
+ b[:nics] = b[:nic_ids].collect { |n| Nic.find(n) }
+ b.delete(:nic_ids)
+ end
+
+ b[:interface_name] = b[:name] if b[:interface_name].nil? && !b[:name].nil?
+ }
+ params[:bondings].delete('...
2009 May 15
0
[PATCH server] use service layer for Network controller.
There's still room for additional refactoring as we may want to eventually split out nic, bonding, and ip address manipulation into their own controller/svc module, but that would be a much more extensive redesign than we want to deal with for the overall service layer creation refactoring.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/app/controllers/network_controller.rb