mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-01-10 09:17:37 +03:00
show warning when using VLAN 1 on a VLAN aware bridge
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
899f8c4aa5
commit
5d662b31b7
@ -179,6 +179,8 @@ my $bridge_add_interface = sub {
|
||||
if ($tag) {
|
||||
system("/sbin/bridge vlan add dev $iface vid $tag pvid untagged") == 0 ||
|
||||
die "unable to add vlan $tag to interface $iface\n";
|
||||
|
||||
warn "Caution: Setting VLAN ID 1 on a VLAN aware bridge may be dangerous\n" if $tag == 1;
|
||||
} else {
|
||||
system("/sbin/bridge vlan add dev $iface vid 2-4094") == 0 ||
|
||||
die "unable to add default vlan tags to interface $iface\n" if !$trunks;
|
||||
|
Loading…
Reference in New Issue
Block a user