]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
addons: bridge: add "None" check (string) for unsupported bridge attr on some systems
authorJulien Fortin <julien@cumulusnetworks.com>
Wed, 14 Nov 2018 20:52:45 +0000 (21:52 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Thu, 13 Dec 2018 22:43:57 +0000 (14:43 -0800)
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/bridge.py

index e51d2b411c2afdab9d3ac468db70d6c71edb5640..9c1de18c4ead51e0dc69b313d7049adc3d1bd036 100644 (file)
@@ -1249,7 +1249,7 @@ class bridge(moduleBase):
             old_cache_key = self._ifla_br_attributes_old_cache_key_map.get(nl_attr)
             if old_cache_key and not link_just_created:
                 cached_value = self.brctlcmd.link_cache_get([ifname, 'linkinfo', old_cache_key])
-                if not cached_value:
+                if not cached_value or cached_value == "None":
                     # the link already exists but we don't have any value
                     # cached for this attr, it probably means that the
                     # capability is not available on this system (i.e old kernel)