mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
vrf: adding default route to ipv6 table
Ticket: CM-9773 Reviewed By: Roopa Prabhu Testing Done: yes, by installing ifupdown .deb file onto cel-e1031-01 adding default route to ipv6 table when the attribute vrf-default-route is set to yes
This commit is contained in:
@@ -319,6 +319,13 @@ class vrf(moduleBase):
|
||||
raise
|
||||
pass
|
||||
|
||||
try:
|
||||
self.exec_command('ip -6 route add table %s unreachable default' %vrf_table)
|
||||
except OSError, e:
|
||||
if e.errno != 17:
|
||||
raise
|
||||
pass
|
||||
|
||||
def _up(self, ifaceobj):
|
||||
try:
|
||||
vrf_table = ifaceobj.get_attr_value_first('vrf-table')
|
||||
|
Reference in New Issue
Block a user