mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-01-30 01:47:28 +03:00
fix #4683: zones: QinQ: fix vlan-protocol when bridge is VLAN aware
The tagged bridge interface need to also have to correct vlan-protocol Signed-off-by: Alexandre Derumier <aderumier@odiso.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
91b2f632c0
commit
de4e2b9cf4
@ -98,13 +98,17 @@ sub generate_sdn_config {
|
||||
} elsif ($vlan_aware) {
|
||||
# VLAN_aware_brige-(tag)----->vlanwarebridge-(tag)----->vnet
|
||||
|
||||
$zone_bridge_ports = "$bridge.$stag";
|
||||
|
||||
if ($vlanprotocol) {
|
||||
@iface_config = ();
|
||||
push @iface_config, "bridge-vlan-protocol $vlanprotocol";
|
||||
push(@{$config->{$bridge}}, @iface_config) if !$config->{$bridge};
|
||||
}
|
||||
|
||||
$zone_bridge_ports = "$bridge.$stag";
|
||||
@iface_config = ();
|
||||
push @iface_config, "vlan-protocol $vlanprotocol";
|
||||
push(@{$config->{$zone_bridge_ports}}, @iface_config) if !$config->{$zone_bridge_ports};
|
||||
}
|
||||
|
||||
} else {
|
||||
# eth--->eth.x(svlan)----->vlanwarebridge-(tag)----->vnet---->vnet
|
||||
|
@ -20,6 +20,10 @@ auto vmbr0
|
||||
iface vmbr0
|
||||
bridge-vlan-protocol 802.1ad
|
||||
|
||||
auto vmbr0.10
|
||||
iface vmbr0.10
|
||||
vlan-protocol 802.1ad
|
||||
|
||||
auto z_myzone
|
||||
iface z_myzone
|
||||
bridge-stp off
|
||||
|
Loading…
x
Reference in New Issue
Block a user