1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vrf: change vrf default route metric to 8192

Ticket: CM-10386
Reviewed By: dsa, vivek
Testing Done: sanity test
This commit is contained in:
Roopa Prabhu
2016-04-13 11:35:31 -07:00
parent 717cee3187
commit 39ee399b45

View File

@@ -550,10 +550,10 @@ class vrf(moduleBase):
try:
if add:
self.exec_command('ip route add table %s unreachable '
'default metric %d' %(vrf_table, 240))
'default metric %d' %(vrf_table, 8192))
else:
self.exec_command('ip route del table %s unreachable '
'default metric %d' %(vrf_table, 240))
'default metric %d' %(vrf_table, 8192))
except OSError, e:
if add and e.errno != 17:
raise
@@ -565,10 +565,10 @@ class vrf(moduleBase):
try:
if add:
self.exec_command('ip -6 route add table %s unreachable '
'default metric %d' %(vrf_table, 240))
'default metric %d' %(vrf_table, 8192))
else:
self.exec_command('ip -6 route del table %s unreachable '
'default metric %d' %(vrf_table, 240))
'default metric %d' %(vrf_table, 8192))
except OSError, e:
if add and e.errno != 17:
raise