]> git.proxmox.com Git - pve-common.git/blobdiff - test/etc_network_interfaces/t.unknown_order.pl
cgroup: cpu quota: fix resetting period length for v1
[pve-common.git] / test / etc_network_interfaces / t.unknown_order.pl
index 862e7b8d73079e424e9f573fc42a64c6ec0e66fd..44c03928975d4f12d91d48ccbbb7b5484f0de8d2 100644 (file)
@@ -2,16 +2,22 @@ my $base = load('loopback');
 sub wanted($) {
     my ($ip) = @_;
     return $base . <<"IFACES";
+auto eth0
 iface eth0 inet manual
 
+auto eth1
 iface eth1 inet manual
 
+auto eth2
 iface eth2 inet manual
 
+auto eth3
 iface eth3 inet manual
 
+auto eth4
 iface eth4 inet manual
 
+auto eth5
 iface eth5 inet manual
 
 iface eth6 inet manual
@@ -25,8 +31,7 @@ iface bond0 inet manual
 
 auto bond1
 iface bond1 inet static
-       address  10.10.10.$ip
-       netmask  255.255.255.0
+       address 10.10.10.$ip/24
        bond-slaves eth2 eth3
        bond-miimon 100
        bond-mode balance-alb
@@ -40,31 +45,25 @@ iface bond2 inet manual
 # Private networking
 
 iface unknown3 inet static
-       address  0.0.0.0
-       netmask  0.0.0.0
+       address 0.0.0.0
 
 iface unknown4 inet static
-       address  0.0.0.0
-       netmask  0.0.0.0
+       address 0.0.0.0
 
 iface unknown5 inet static
-       address  0.0.0.0
-       netmask  0.0.0.0
+       address 0.0.0.0
 
 auto vmbr0
 iface vmbr0 inet static
-       address  192.168.100.13
-       netmask  255.255.255.0
-       gateway  192.168.100.1
+       address 192.168.100.13/24
+       gateway 192.168.100.1
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
 
 auto unknown6
 iface unknown6 inet static
-       address  10.10.11.13
-       netmask  255.255.255.0
-       network 10.10.11.0
+       address 10.10.11.13/24
        pre-up ifconfig bond0 up
 
 auto vmbr3
@@ -92,7 +91,7 @@ IFACES
 }
 
 r(wanted(13));
-update_iface('bond1', [ { family => 'inet', address => '10.10.10.11' } ]);
+update_iface('bond1', [ { family => 'inet', address => '10.10.10.11/24' } ]);
 expect wanted(11);
 
 1;