]>
git.proxmox.com Git - pve-common.git/blob - test/etc_network_interfaces/t.create_network.pl
edc15fddfe31380d0f5793383d43a3dacce4a76a
1 save
('proc_net_dev', <<'/proc/net/dev');
8 my $ip = '192.168.0.2';
9 my $nm = '255.255.255.0';
10 my $gw = '192.168.0.1';
11 my $svcnodeip = '239.192.105.237';
13 my $remoteip1 = '192.168.0.3';
14 my $remoteip2 = '192.168.0.4';
17 $config->{ifaces
}->{eth1
} = {
27 $config->{ifaces
}->{vxlan1
} = {
32 'vxlan-svcnodeip' => $svcnodeip,
33 'vxlan-physdev' => $physdev,
37 $config->{ifaces
}->{vxlan2
} = {
42 'vxlan-local-tunnelip' => $ip,
46 $config->{ifaces
}->{vxlan3
} = {
51 'vxlan-remoteip' => [$remoteip1, $remoteip2],
56 expect load
('loopback') . <<"CHECK";
57 source-directory interfaces.d
59 iface eth0 inet manual
62 iface eth1 inet static
68 iface vmbr0 inet static
77 iface vxlan1 inet manual
79 vxlan-svcnodeip $svcnodeip
80 vxlan-physdev $physdev
83 iface vxlan2 inet manual
85 vxlan-local-tunnelip $ip
88 iface vxlan3 inet manual
90 vxlan-remoteip $remoteip1
91 vxlan-remoteip $remoteip2
105 $config->{ifaces
}->{eth1
} = {
111 families
=> ['inet6'],
116 expect load
('loopback') . <<"CHECK";
117 source-directory interfaces.d
119 iface eth0 inet manual
122 iface eth1 inet6 static
128 iface vmbr0 inet static
130 netmask 255.255.255.0