mirror of
git://git.proxmox.com/git/pve-common.git
synced 2024-12-22 21:33:47 +03:00
INotify: fix mtu check && add test
reverse the parent-child. (bridge-port is the parent)
This commit is contained in:
parent
7c67d20d92
commit
968c90f174
@ -1565,7 +1565,7 @@ sub __write_etc_network_interfaces {
|
||||
if ($n->{method} eq 'static' && $n->{address} ne '0.0.0.0') ||
|
||||
($n->{method6} eq 'static' && $n->{address} ne '::');
|
||||
|
||||
&$check_mtu($ifaces, $iface, $p);
|
||||
&$check_mtu($ifaces, $p, $iface);
|
||||
$bridgeports->{$p} = $iface;
|
||||
}
|
||||
$bridges->{$iface} = $d;
|
||||
|
@ -325,6 +325,17 @@ $config->{ifaces}->{'eth1.100'} = {
|
||||
autostart => 1
|
||||
};
|
||||
|
||||
$config->{ifaces}->{'vmbr4'} = {
|
||||
mtu => 1200,
|
||||
type => 'bridge',
|
||||
method => 'manual',
|
||||
families => ['inet'],
|
||||
bridge_stp => 'off',
|
||||
bridge_fd => 0,
|
||||
bridge_ports => 'bond0.100',
|
||||
autostart => 1
|
||||
};
|
||||
|
||||
expect load('loopback') . <<"CHECK";
|
||||
source-directory interfaces.d
|
||||
|
||||
@ -355,6 +366,13 @@ $vmbr0_part
|
||||
|
||||
$vmbr123_part
|
||||
|
||||
auto vmbr4
|
||||
iface vmbr4 inet manual
|
||||
bridge-ports bond0.100
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
mtu 1200
|
||||
|
||||
auto vmbr1.100
|
||||
iface vmbr1.100 inet manual
|
||||
mtu 1300
|
||||
|
Loading…
Reference in New Issue
Block a user