]>
git.proxmox.com Git - pve-common.git/blob - test/etc_network_interfaces/t.update_network.pl
18bba00332f4b55fcccd7903d56956ed9eaf8b91
1 save
('proc_net_dev', <<'/proc/net/dev');
6 my $ip = '192.168.0.2/24';
7 my $gw = '192.168.0.1';
8 my $ip6 = 'fc05::2/112';
15 $config->{ifaces
}->{eth1
} = {
25 expect load
('loopback') . <<"CHECK";
26 source-directory interfaces.d
28 iface eth0 inet manual
31 iface eth1 inet static
36 iface vmbr0 inet static
50 $config->{ifaces
}->{eth1
}->{$_->[0]} = $_->[1] foreach (
51 [ method6
=> 'static' ],
55 [ families
=> ['inet', 'inet6'] ]
59 my $final = load
('loopback') . <<"CHECK";
60 source-directory interfaces.d
62 iface eth0 inet manual
65 iface eth1 inet static
69 iface eth1 inet6 static
74 iface vmbr0 inet static
88 # Reload ipv4 and replace instead of modifying
91 $config->{ifaces
}->{eth1
} = {
101 families
=> ['inet', 'inet6'],