Displaying 1 result from an estimated 1 matches for "naddri".
Did you mean:
naddr
2009 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
...ssert net.ip_addresses[0].address != addr
+ assert net.ip_addresses[0].netmask != addr
+ assert net.ip_addresses[0].broadcast != addr
+ assert net.ip_addresses[0].gateway != addr
+ net.nics.each { |nic|
+ assert nic.ip_address != addr
+ }
+
+ addri = IPAddr.new(addr).to_i
+ naddri = IPAddr.new(net.ip_addresses[0].address).to_i
+ baddri = naddri + (~IPAddr.new(net.ip_addresses[0].netmask)).to_i
+ assert addri > naddri
+ assert addri < baddri
+ end
end
--
1.6.2.5