]>
git.proxmox.com Git - pve-common.git/blob - test/etc_network_interfaces/t.create_network.pl
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
}->{vmbr1
} = {
33 bridge_ports
=> vxlan1
,
34 bridge_vlan_aware
=> yes
,
39 $config->{ifaces
}->{vmbr2
} = {
45 bridge_ports
=> vxlan2
,
49 $config->{ifaces
}->{vmbr3
} = {
55 bridge_ports
=> vxlan3
,
56 bridge_vlan_aware
=> yes
,
57 bridge_vids
=> '2-10',
61 $config->{ifaces
}->{vxlan1
} = {
66 'vxlan-svcnodeip' => $svcnodeip,
67 'vxlan-physdev' => $physdev,
71 $config->{ifaces
}->{vxlan2
} = {
76 'vxlan-local-tunnelip' => $ip,
77 'bridge-learning' => 'off',
78 'bridge-arp-nd-suppress' => 'on',
79 'bridge-unicast-flood' => 'off',
80 'bridge-multicast-flood' => 'off',
84 $config->{ifaces
}->{vxlan3
} = {
89 'vxlan-remoteip' => [$remoteip1, $remoteip2],
95 expect load
('loopback') . <<"CHECK";
96 source-directory interfaces.d
98 iface eth0 inet manual
101 iface eth1 inet static
107 iface vmbr0 inet static
109 netmask 255.255.255.0
116 iface vmbr1 inet manual
120 bridge-vlan-aware yes
124 iface vmbr2 inet manual
130 iface vmbr3 inet manual
134 bridge-vlan-aware yes
138 iface vxlan1 inet manual
140 vxlan-svcnodeip $svcnodeip
141 vxlan-physdev $physdev
144 iface vxlan2 inet manual
146 vxlan-local-tunnelip $ip
147 bridge-arp-nd-suppress on
149 bridge-multicast-flood off
150 bridge-unicast-flood off
153 iface vxlan3 inet manual
155 vxlan-remoteip $remoteip1
156 vxlan-remoteip $remoteip2
171 $config->{ifaces
}->{eth1
} = {
177 families
=> ['inet6'],
182 expect load
('loopback') . <<"CHECK";
183 source-directory interfaces.d
185 iface eth0 inet manual
188 iface eth1 inet6 static
194 iface vmbr0 inet static
196 netmask 255.255.255.0