1
0
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:
Nikhil
2016-02-22 16:05:52 -08:00
parent 72c964c2f2
commit 54616d3f51
2 changed files with 30 additions and 3 deletions

View File

@@ -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)