X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=test%2Fetc_network_interfaces%2Ft.unknown_order.pl;fp=test%2Fetc_network_interfaces%2Ft.unknown_order.pl;h=780c5ec8867db6983a798918ee975a0b91f6dd00;hp=862e7b8d73079e424e9f573fc42a64c6ec0e66fd;hb=378c6656c9aba1d57786f916717c2622a3059fb6;hpb=5bd1e56b7ab7100dcd8d3e75394e1508306ba69d diff --git a/test/etc_network_interfaces/t.unknown_order.pl b/test/etc_network_interfaces/t.unknown_order.pl index 862e7b8..780c5ec 100644 --- a/test/etc_network_interfaces/t.unknown_order.pl +++ b/test/etc_network_interfaces/t.unknown_order.pl @@ -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;