From fb43076f9e1a51ccd51cfd108682c8ad0537936b Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Wed, 23 Mar 2022 17:42:15 +0100 Subject: [PATCH] Fix linux native bridge for SUSE in cloudutils (#6134) * fix linux native bridge for SUSE * apply suggestion --- python/lib/cloudutils/serviceConfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/lib/cloudutils/serviceConfig.py b/python/lib/cloudutils/serviceConfig.py index b9ee7d55153..61c64cdefd9 100755 --- a/python/lib/cloudutils/serviceConfig.py +++ b/python/lib/cloudutils/serviceConfig.py @@ -374,6 +374,9 @@ class networkConfigSUSE(serviceCfgBase, networkConfigBase): if self.syscfg.env.bridgeType == "openvswitch": if cfo.getEntry("IPADDR"): cfo.rmEntry("IPADDR", cfo.getEntry("IPADDR")) + elif self.syscfg.env.bridgeType == "native": + # Bridge is linked to the dev in SUSE not the other way round + pass else: raise CloudInternalException("Unknown network.bridge.type %s" % self.syscfg.env.bridgeType) cfo.save()