]>
git.proxmox.com Git - pve-common.git/blob - test/etc_network_interfaces/t.update_network.pl
1 save
('proc_net_dev', <<'/proc/net/dev');
6 my $ip = '192.168.0.2';
7 my $nm = '255.255.255.0';
8 my $gw = '192.168.0.1';
17 $config->{ifaces
}->{eth1
} = {
28 expect load
('loopback') . <<"CHECK";
29 source-directory interfaces.d
31 iface eth0 inet manual
34 iface eth1 inet static
40 iface vmbr0 inet static
55 $config->{ifaces
}->{eth1
}->{$_->[0]} = $_->[1] foreach (
56 [ method6
=> 'static' ],
60 [ families
=> ['inet', 'inet6'] ]
64 my $final = load
('loopback') . <<"CHECK";
65 source-directory interfaces.d
67 iface eth0 inet manual
70 iface eth1 inet static
75 iface eth1 inet6 static
81 iface vmbr0 inet static
96 # Reload ipv4 and replace instead of modifying
99 $config->{ifaces
}->{eth1
} = {
109 families
=> ['inet', 'inet6'],