5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-08 01:17:37 +03:00

Inotify : write network config : add bridge-vids

default is 2-4094 if user don't have specified.

mandatory for ifupdown2 and compatible with
current promox ifupdown bridgevlanport script
This commit is contained in:
Alexandre Derumier 2018-06-20 07:36:56 +02:00 committed by Wolfgang Bumiller
parent 1accc6da65
commit 95d0e63377

View File

@ -813,7 +813,8 @@ sub __read_etc_network_interfaces {
'bridge-vlan-aware' => 'bridge_vlan_aware',
'bridge-fd' => 'bridge_fd',
'bridge-stp' => 'bridge_stp',
'bridge-ports' => 'bridge_ports'
'bridge-ports' => 'bridge_ports',
'bridge-vids' => 'bridge_vids'
};
my $line;
@ -1091,6 +1092,8 @@ sub __interface_to_string {
if( defined($d->{bridge_vlan_aware})) {
$raw .= "\tbridge-vlan-aware yes\n";
$v = defined($d->{bridge_vids}) ? $d->{bridge_vids} : "2-4094";
$raw .= "\tbridge-vids $v\n";
}
$done->{bridge_vlan_aware} = 1;