search for: suggested_ips

Displaying 1 result from an estimated 1 matches for "suggested_ips".

2009 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
...ices/host_service.rb b/src/app/services/host_service.rb index 3b59f0e..e6b2810 100644 --- a/src/app/services/host_service.rb +++ b/src/app/services/host_service.rb @@ -73,6 +73,8 @@ module HostService def svc_modify(id) lookup(id, Privilege::MODIFY) @networks = Network.find(:all) + @suggested_ips = {} + @networks.each { |n| @suggested_ips[n.id] = n.gen_address } @bonding_types = BondingType.find(:all) end diff --git a/src/app/views/host/edit_network.rhtml b/src/app/views/host/edit_network.rhtml index 1154595..2b22a7c 100644 --- a/src/app/views/host/edit_network.rhtml +++ b/src/...