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

fixing typos in bonduitls.py and iproute2.py

Ticket: None
Reviewed By: Roopa
Testing Done:

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2016-05-10 17:42:48 +02:00
parent 2e4dc7247c
commit 6263596cd8
2 changed files with 4 additions and 4 deletions

View File

@@ -308,7 +308,7 @@ class bondutil(utilsBase):
self._cache_delete([bondname, 'linkinfo', 'slaves'], slave)
def remove_slaves_all(self, bondname):
if not _self._cache_get([bondname, 'linkinfo', 'slaves']):
if not self._cache_get([bondname, 'linkinfo', 'slaves']):
return
slaves = None
sysfs_bond_path = ('/sys/class/net/%s' %bondname +

View File

@@ -502,7 +502,7 @@ class iproute2(utilsBase):
if not gateway:
return
return self.exec_command('ip -6 route del default via %s' %gateway +
'dev %s' %ifacename)
' dev %s' %ifacename)
def link_create_vlan(self, vlan_device_name, vlan_raw_device, vlanid):
if self.link_exists(vlan_device_name):
@@ -714,7 +714,7 @@ class iproute2(utilsBase):
[self.exec_command('bridge vlan del vid %s dev %s'
%(v, bridgeportname)) for v in vids]
def bridge_port_vids_flush(self, bridgeportname):
def bridge_port_vids_flush(self, bridgeportname, vid):
self.exec_command('bridge vlan del vid %s dev %s'
%(vid, bridgeportname))
@@ -725,7 +725,7 @@ class iproute2(utilsBase):
if not bridgeout: return []
brvlanlines = bridgeout.readlines()[2:]
vids = [l.strip() for l in brvlanlines]
return [vid for v in vids if vid]
return [v for v in vids if v]
def bridge_port_vids_get_all(self):
brvlaninfo = {}