]> git.proxmox.com Git - pve-common.git/blob - 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
1 save('proc_net_dev', <<'/proc/net/dev');
2 eth0:
3 eth1:
4 /proc/net/dev
5
6 # Check for dropped or duplicated options
7
8 my $ip = '192.168.0.2';
9 my $nm = '255.255.255.0';
10 my $gw = '192.168.0.1';
11 my $ip6 = 'fc05::2';
12 my $nm6 = '112';
13 my $gw6 = 'fc05::1';
14
15 # Load
16 my $cfg = load('base') . <<"CHECK";
17 iface eth1 inet manual
18
19 auto vmbr0
20 iface 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
29 auto vmbr0.10
30 iface vmbr0.10 inet static
31
32 auto vmbr0.20
33 iface vmbr0.20 inet static
34
35 auto vmbr0.30
36 iface vmbr0.30 inet static
37
38 auto vmbr0.40
39 iface vmbr0.40 inet static
40
41 auto vmbr0.100
42 iface vmbr0.100 inet static
43
44 auto zmgmt
45 iface zmgmt inet static
46 vlan-id 1
47 vlan-raw-device vmbr0
48
49 CHECK
50
51 r $cfg;
52 expect $cfg;
53
54 1;