mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vrf: support for vrf-default-route attribute
Ticket:CM-9106 Reviewed By: Roopa Prabhu and Dave Olson Testing Done: Yes, by installing ifupdown and cumulus-tools deb on to cel-e1031-01 This patch adds per vrf default route: "ip route add table <tbid> unreachable default" It also accepts a policy file with vrf-default-route [yes/no] This also includes ifquery fixes for running and check.
This commit is contained in:
@@ -96,6 +96,10 @@ class iproute2(utilsBase):
|
||||
elif citems[i] == 'vrf' and citems[i+1] == 'table':
|
||||
vattrs = {'table' : citems[i+2]}
|
||||
linkattrs['linkinfo'] = vattrs
|
||||
linkattrs['kind'] = 'vrf'
|
||||
break
|
||||
elif citems[i] == 'vrf_slave':
|
||||
linkattrs['kind'] = 'vrf_slave'
|
||||
break
|
||||
#linkattrs['alias'] = self.read_file_oneline(
|
||||
# '/sys/class/net/%s/ifalias' %ifname)
|
||||
|
Reference in New Issue
Block a user