]> git.proxmox.com Git - ifupdown2.git/commitdiff
allow address on vlan aware bridge
authorAlexandre Derumier <aderumier@odiso.com>
Sat, 16 Jun 2018 13:07:23 +0000 (15:07 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Jun 2018 08:04:37 +0000 (10:04 +0200)
debian/patches/pve/0005-allow-address-on-vlan-aware-bridge.patch [new file with mode: 0644]
debian/patches/series

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 (file)
index 0000000..26edd11
--- /dev/null
@@ -0,0 +1,33 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier@odiso.com>
+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
+
index 48ac04ea8ecddaef207351100f1becd7dd14b61c..42616c4f2593055d2ebcaa6544e8750e3cd2c094 100644 (file)
@@ -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