]> git.proxmox.com Git - pve-common.git/blobdiff - test/etc_network_interfaces/t.ovs_bridge_allow.pl
bump version to 8.2.1
[pve-common.git] / test / etc_network_interfaces / t.ovs_bridge_allow.pl
index 6d22243b3d7563660a20e283a139e4b1680e0cd5..742c9efa3d50355ea2ef5dfa14b1ce18534f3e87 100644 (file)
@@ -1,7 +1,6 @@
 use strict;
 
-my $ip = '192.168.0.100';
-my $nm = '255.255.255.0';
+my $ip = '192.168.0.100/24';
 my $gw = '192.168.0.1';
 
 # replace proc_net_dev with one with a bunch of interfaces
@@ -17,7 +16,6 @@ r('');
 new_iface('vmbr0', 'OVSBridge',
     [ { family => 'inet',
         address => $ip,
-        netmask => $nm,
         gateway => $gw } ],
     autostart => 1);
 
@@ -41,9 +39,8 @@ iface eth3 inet manual
 
 auto vmbr0
 iface vmbr0 inet static
-       address  $ip
-       netmask  $nm
-       gateway  $gw
+       address $ip
+       gateway $gw
        ovs_type OVSBridge
 
 /etc/network/interfaces
@@ -55,12 +52,12 @@ expect load('loopback') . <<"/etc/network/interfaces";
 auto eth0
 iface eth0 inet manual
 
-allow-vmbr0 eth1
+auto eth1
 iface eth1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0
 
-allow-vmbr0 eth2
+auto eth2
 iface eth2 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0
@@ -69,9 +66,8 @@ iface eth3 inet manual
 
 auto vmbr0
 iface vmbr0 inet static
-       address  $ip
-       netmask  $nm
-       gateway  $gw
+       address $ip
+       gateway $gw
        ovs_type OVSBridge
        ovs_ports eth1 eth2
 
@@ -93,7 +89,7 @@ expect load('loopback') . <<"/etc/network/interfaces";
 auto eth0
 iface eth0 inet manual
 
-allow-vmbr0 eth1
+auto eth1
 iface eth1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0
@@ -104,9 +100,8 @@ iface eth2 inet manual
 
 auto vmbr0
 iface vmbr0 inet static
-       address  $ip
-       netmask  $nm
-       gateway  $gw
+       address $ip
+       gateway $gw
        ovs_type OVSBridge
        ovs_ports eth1