5
0
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:
Dominik Csapak 2016-05-18 11:18:29 +02:00 committed by Dietmar Maurer
parent 899f8c4aa5
commit 5d662b31b7

View File

@ -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;