mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
ifupdownaddons: iproute2: support for vrf linkinfo
Closes: CM-8518 Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Acked-by: Nikhil Gajendrakumar <nikhil@cumulusnetworks.com>
This commit is contained in:
@@ -93,6 +93,10 @@ class iproute2(utilsBase):
|
||||
vattrs['remote'] = peers
|
||||
linkattrs['linkinfo'] = vattrs
|
||||
break
|
||||
elif citems[i] == 'vrf' and citems[i+1] == 'table':
|
||||
vattrs = {'table' : citems[i+2]}
|
||||
linkattrs['linkinfo'] = vattrs
|
||||
break
|
||||
#linkattrs['alias'] = self.read_file_oneline(
|
||||
# '/sys/class/net/%s/ifalias' %ifname)
|
||||
linkout[ifname] = linkattrs
|
||||
|
Reference in New Issue
Block a user