]> git.proxmox.com Git - pve-common.git/blame - test/etc_network_interfaces/t.vlan-parsing.pl
bump version to 8.2.1
[pve-common.git] / test / etc_network_interfaces / t.vlan-parsing.pl
CommitLineData
f869c96a
FG
1save('proc_net_dev', <<'/proc/net/dev');
2eth0:
3eth1:
4/proc/net/dev
5
6# Check for dropped or duplicated options
7
8my $ip = '192.168.0.2';
9my $nm = '255.255.255.0';
10my $gw = '192.168.0.1';
11my $ip6 = 'fc05::2';
12my $nm6 = '112';
13my $gw6 = 'fc05::1';
14
15# Load
16my $cfg = load('base') . <<"CHECK";
17iface eth1 inet manual
18
19auto vmbr0
20iface vmbr0 inet static
21 address 10.0.0.2/24
22 gateway 10.0.0.1
23 bridge-ports eth0
24 bridge-stp off
25 bridge-fd 0
26 bridge-vlan-aware yes
27 bridge-vids 2-4094
28
29auto vmbr0.10
30iface vmbr0.10 inet static
31
32auto vmbr0.20
33iface vmbr0.20 inet static
34
35auto vmbr0.30
36iface vmbr0.30 inet static
37
38auto vmbr0.40
39iface vmbr0.40 inet static
40
41auto vmbr0.100
42iface vmbr0.100 inet static
43
44auto zmgmt
45iface zmgmt inet static
46 vlan-id 1
47 vlan-raw-device vmbr0
48
49CHECK
50
51r $cfg;
52expect $cfg;
53
541;