From 07b8c991a0392980a3dac6afc712a187cd1d1ccd Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Sat, 16 Jun 2018 15:07:23 +0200 Subject: [PATCH] allow address on vlan aware bridge --- ...5-allow-address-on-vlan-aware-bridge.patch | 33 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 34 insertions(+) create mode 100644 debian/patches/pve/0005-allow-address-on-vlan-aware-bridge.patch diff --git a/debian/patches/pve/0005-allow-address-on-vlan-aware-bridge.patch b/debian/patches/pve/0005-allow-address-on-vlan-aware-bridge.patch new file mode 100644 index 0000000..26edd11 --- /dev/null +++ b/debian/patches/pve/0005-allow-address-on-vlan-aware-bridge.patch @@ -0,0 +1,33 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Alexandre Derumier +Date: Sat, 16 Jun 2018 14:59:46 +0200 +Subject: [PATCH] allow address on vlan aware bridge + +This will allow to setup ip address on vlan aware bridge. +Note that in this case, the ip will use the default PVID. +--- + ifupdown2/ifupdown/utils.py | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/ifupdown2/ifupdown/utils.py b/ifupdown2/ifupdown/utils.py +index f7a89a7..cee3425 100644 +--- a/ifupdown2/ifupdown/utils.py ++++ b/ifupdown2/ifupdown/utils.py +@@ -346,14 +346,6 @@ class utils(): + else: + cls.logger.info(msg) + return False +- elif (ifaceobj.link_kind & ifaceLinkKind.BRIDGE +- and ifaceobj.link_privflags & ifaceLinkPrivFlags.BRIDGE_VLAN_AWARE): +- msg = '%s bridge vlan aware interfaces' +- if syntax_check: +- cls.logger.warning(msg) +- else: +- cls.logger.info(msg) +- return False + return True + + @classmethod +-- +2.11.0 + diff --git a/debian/patches/series b/debian/patches/series index 48ac04e..42616c4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ pve/0001-config-tuning.patch pve/0002-manual-interfaces-set-link-up.patch pve/0003-don-t-remove-tap-veth-fwpr-interfaces-from-bridge-on.patch pve/0004-add-dummy-mtu-bridgevlanport-modules.patch +pve/0005-allow-address-on-vlan-aware-bridge.patch -- 2.39.2