Displaying 2 results from an estimated 2 matches for "static_physical_network_on".
Did you mean:
static_physical_network_one
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...pe: 1
bandwidth: 100
host: fileserver_managed_node
- physical_network: fileserver_network
+ network: fileserver_network
ldapserver_nic_one:
mac: 00:03:02:00:09:06
@@ -25,32 +25,32 @@ ldapserver_nic_one:
bandwidth: 100
bridge:
host: ldapserver_managed_node
- physical_network: static_physical_network_one
+ network: static_physical_network_one
buildserver_nic_one:
mac: 07:17:19:65:03:38
usage_type: 1
bandwidth: 100
host: buildserver_managed_node
- physical_network: dhcp_physical_network_one
+ network: dhcp_physical_network_one
buildserver_nic_two:
mac: 07:17:19:65:03:39
u...
2009 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
..._test.rb
+++ b/src/test/unit/network_test.rb
@@ -66,4 +66,23 @@ class NetworkTest < ActiveSupport::TestCase
vl.bondings.push Bonding.new
flunk "Vlan with bondings should not be destroyable" if vl.is_destroyable?
end
+
+ def test_gen_physical_net_address
+ net = networks :static_physical_network_one
+ addr = net.gen_address
+
+ assert 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
+ }
+
+...