1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Use 'fdb replace' instead of 'fdb add'

Ticket: CM-4178
Reviewed By:
Testing Done: Tested ifupdown2 with 'address-virtual' attributes
This commit is contained in:
Roopa Prabhu
2014-11-15 23:36:08 -08:00
parent fac4138bfe
commit 205cde7218

View File

@@ -619,10 +619,10 @@ class iproute2(utilsBase):
def bridge_fdb_add(self, dev, address, vlan=None, bridge=True):
target = 'self' if bridge else ''
if vlan:
self.exec_command('bridge fdb add %s dev %s vlan %s %s'
self.exec_command('bridge fdb replace %s dev %s vlan %s %s'
%(address, dev, vlan, target))
else:
self.exec_command('bridge fdb add %s dev %s %s'
self.exec_command('bridge fdb replace %s dev %s %s'
%(address, dev, target))
def bridge_fdb_del(self, dev, address, vlan=None, bridge=True):