Fix linux native bridge for SUSE in cloudutils (#6134)

* fix linux native bridge for SUSE

* apply suggestion
This commit is contained in:
Michael 2022-03-23 17:42:15 +01:00 committed by GitHub
parent f8b648b938
commit fb43076f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,6 +374,9 @@ class networkConfigSUSE(serviceCfgBase, networkConfigBase):
if self.syscfg.env.bridgeType == "openvswitch": if self.syscfg.env.bridgeType == "openvswitch":
if cfo.getEntry("IPADDR"): if cfo.getEntry("IPADDR"):
cfo.rmEntry("IPADDR", 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: else:
raise CloudInternalException("Unknown network.bridge.type %s" % self.syscfg.env.bridgeType) raise CloudInternalException("Unknown network.bridge.type %s" % self.syscfg.env.bridgeType)
cfo.save() cfo.save()