Inotify: delete vlan-id for "iface.X" vlan iface.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2020-11-26 10:18:46 +01:00 committed by Thomas Lamprecht
parent 63d0f1ff3e
commit 9ca89b8722

View File

@ -1554,6 +1554,8 @@ sub __write_etc_network_interfaces {
$p = $1;
$vlanid = $2;
delete $d->{'vlan-raw-device'} if $d->{'vlan-raw-device'};
delete $d->{'vlan-id'} if $d->{'vlan-id'};
} else {
die "missing vlan-raw-device option" if !$d->{'vlan-raw-device'};
$p = $d->{'vlan-raw-device'};