mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vrf: ifquery fixes for vrf
Ticket: CM-10175 Reviewed By: Roopa Prabhu Testing Done: yes, by installing ifupdown .deb onto dell-s3000-02 This patch is a git revert of commit 934c4c49c0e77289e7d56349c44d14ca2c307621. In addition to that, order of _addr_filter() function call arguments are changed to match the function definition. Signed-off-by: Nikhil <nikhil@cumulusnetworks.com>
This commit is contained in:
@ -158,14 +158,14 @@ class iproute2(utilsBase):
|
||||
except KeyError:
|
||||
linkout[ifname] = linkattrs
|
||||
if citems[2] == 'inet':
|
||||
if self._addr_filter(citems[3], ifname, scope=citems[5]):
|
||||
if self._addr_filter(ifname, citems[3], scope=citems[5]):
|
||||
continue
|
||||
addrattrs = {}
|
||||
addrattrs['scope'] = citems[5]
|
||||
addrattrs['type'] = 'inet'
|
||||
linkout[ifname]['addrs'][citems[3]] = addrattrs
|
||||
elif citems[2] == 'inet6':
|
||||
if self._addr_filter(citems[3], ifname, scope=citems[5]):
|
||||
if self._addr_filter(ifname, citems[3], scope=citems[5]):
|
||||
continue
|
||||
if citems[5] == 'link': continue #skip 'link' addresses
|
||||
addrattrs = {}
|
||||
|
Reference in New Issue
Block a user