mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: bridge: batch bridge commands
Ticket: CM-11274 Reviewed By: julien, nikhil, wkok Testing Done: tested with vxlan scale config Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -1005,6 +1005,7 @@ class bridge(moduleBase):
|
||||
if not bridgeports:
|
||||
self.logger.debug('%s: cannot find bridgeports' %ifaceobj.name)
|
||||
return
|
||||
self.ipcmd.batch_start()
|
||||
for bport in bridgeports:
|
||||
# Use the brctlcmd bulk set method: first build a dictionary
|
||||
# and then call set
|
||||
@@ -1037,6 +1038,7 @@ class bridge(moduleBase):
|
||||
err = True
|
||||
self.logger.warn('%s: %s' %(ifaceobj.name, str(e)))
|
||||
pass
|
||||
self.ipcmd.bridge_batch_commit()
|
||||
if err:
|
||||
raise Exception('%s: errors applying port settings' %ifaceobj.name)
|
||||
|
||||
|
Reference in New Issue
Block a user