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:
@@ -550,10 +550,10 @@ class vrf(moduleBase):
|
|||||||
try:
|
try:
|
||||||
if add:
|
if add:
|
||||||
self.exec_command('ip route add table %s unreachable '
|
self.exec_command('ip route add table %s unreachable '
|
||||||
'default metric %d' %(vrf_table, 240))
|
'default metric %d' %(vrf_table, 8192))
|
||||||
else:
|
else:
|
||||||
self.exec_command('ip route del table %s unreachable '
|
self.exec_command('ip route del table %s unreachable '
|
||||||
'default metric %d' %(vrf_table, 240))
|
'default metric %d' %(vrf_table, 8192))
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
if add and e.errno != 17:
|
if add and e.errno != 17:
|
||||||
raise
|
raise
|
||||||
@@ -565,10 +565,10 @@ class vrf(moduleBase):
|
|||||||
try:
|
try:
|
||||||
if add:
|
if add:
|
||||||
self.exec_command('ip -6 route add table %s unreachable '
|
self.exec_command('ip -6 route add table %s unreachable '
|
||||||
'default metric %d' %(vrf_table, 240))
|
'default metric %d' %(vrf_table, 8192))
|
||||||
else:
|
else:
|
||||||
self.exec_command('ip -6 route del table %s unreachable '
|
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:
|
except OSError, e:
|
||||||
if add and e.errno != 17:
|
if add and e.errno != 17:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user