Commit b3429272 authored by Julien Muchembled's avatar Julien Muchembled

Add support for recent iproute, which now recognizes babel protocol

(cherry picked from commit f0851225)
parent 5be3cc90
...@@ -380,7 +380,8 @@ def main(): ...@@ -380,7 +380,8 @@ def main():
def check_no_default_route(): def check_no_default_route():
for route in call(('ip', '-6', 'route', 'show', for route in call(('ip', '-6', 'route', 'show',
'default')).splitlines(): 'default')).splitlines():
if ' proto 42 ' not in route: if not (' proto babel ' in route
or ' proto 42 ' in route):
sys.exit("Detected default route (%s)" sys.exit("Detected default route (%s)"
" whereas you specified --table=0." " whereas you specified --table=0."
" Fix your configuration." % route) " Fix your configuration." % route)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment