mirror of
git://git.proxmox.com/git/pve-common.git
synced 2024-12-22 21:33:47 +03:00
29 lines
462 B
Perl
29 lines
462 B
Perl
#
|
|
# Order of option lines between interfaces should be preserved:
|
|
# eth0 is unconfigured and will thus end up at the end as 'manual'
|
|
#
|
|
my $ordered = <<'ORDERED';
|
|
source /etc/network/config1
|
|
|
|
iface eth1 inet manual
|
|
|
|
source-directory /etc/network/interfaces.d
|
|
|
|
iface eth2 inet manual
|
|
|
|
iface eth3 inet manual
|
|
|
|
ORDERED
|
|
|
|
r("$ordered", <<'/proc/net/dev'
|
|
eth0:
|
|
eth1:
|
|
eth2:
|
|
eth3:
|
|
/proc/net/dev
|
|
);
|
|
|
|
expect(load('loopback') . $ordered . "iface eth0 inet manual\n\n");
|
|
|
|
1;
|