]> git.proxmox.com Git - pve-common.git/blobdiff - test/etc_network_interfaces/t.unknown_order.pl
INotify: use cidr for address on config change
[pve-common.git] / test / etc_network_interfaces / t.unknown_order.pl
index 862e7b8d73079e424e9f573fc42a64c6ec0e66fd..780c5ec8867db6983a798918ee975a0b91f6dd00 100644 (file)
@@ -25,8 +25,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
@@ -41,20 +40,16 @@ iface bond2 inet manual
 
 iface unknown3 inet static
        address  0.0.0.0
-       netmask  0.0.0.0
 
 iface unknown4 inet static
        address  0.0.0.0
-       netmask  0.0.0.0
 
 iface unknown5 inet static
        address  0.0.0.0
-       netmask  0.0.0.0
 
 auto vmbr0
 iface vmbr0 inet static
-       address  192.168.100.13
-       netmask  255.255.255.0
+       address  192.168.100.13/24
        gateway  192.168.100.1
        bridge-ports bond0
        bridge-stp off
@@ -62,9 +57,7 @@ iface vmbr0 inet static
 
 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 +85,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;