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

Fix "bridge vlan add vid" setting failure.

Ticket: CM-8845
Reviewed By: Roopa
Testing Done: vlan aware bridge SVI ifup/ifdown

Drop the vid_end parameter from IFLA_BRIDGE_VLAN_INFO attribute
This commit is contained in:
anuradhak
2016-01-15 15:33:05 -08:00
parent 385107439c
commit 9022763806
2 changed files with 2 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ class rtnetlinkApi(RtNetlink):
self.logger.info('rtnetlink: bridge vlan add vid %s %s %s dev %s %s'
%(vid, 'untagged' if untagged else '',
'pvid' if pvid else '', dev,
'self' if self else ''))
'self' if not master else ''))
if ifupdownmain.ifupdownFlags.DRYRUN:
return
try:
@@ -218,7 +218,7 @@ class rtnetlinkApi(RtNetlink):
ifm = Ifinfomsg(AF_BRIDGE, ifi_index=ifindex)
rtas = {IFLA_AF_SPEC: {
IFLA_BRIDGE_FLAGS: flags,
IFLA_BRIDGE_VLAN_INFO : BridgeVlanInfo(vflags, int(vid), int(vid))
IFLA_BRIDGE_VLAN_INFO : BridgeVlanInfo(vflags, int(vid))
}
}
if add: