Skip to content

Commit 7fe4430

Browse files
mib1185rohityadavcloud
authored andcommitted
Fix linux native bridge for SUSE in cloudutils (apache#6134)
* fix linux native bridge for SUSE * apply suggestion (cherry picked from commit fb43076) Signed-off-by: Rohit Yadav <[email protected]>
1 parent 2982a85 commit 7fe4430

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/lib/cloudutils/serviceConfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ def addBridge(self, brName, dev):
374374
if self.syscfg.env.bridgeType == "openvswitch":
375375
if cfo.getEntry("IPADDR"):
376376
cfo.rmEntry("IPADDR", cfo.getEntry("IPADDR"))
377+
elif self.syscfg.env.bridgeType == "native":
378+
# Bridge is linked to the dev in SUSE not the other way round
379+
pass
377380
else:
378381
raise CloudInternalException("Unknown network.bridge.type %s" % self.syscfg.env.bridgeType)
379382
cfo.save()

0 commit comments

Comments
 (0)