]> git.proxmox.com Git - pve-common.git/blob - test/etc_network_interfaces/t.parsed_options.pl
cgroup: cpu quota: fix resetting period length for v1
[pve-common.git] / test / etc_network_interfaces / t.parsed_options.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 CHECK
30
31 r $cfg;
32 expect $cfg;
33
34 1;