Commit f0851225 authored by Julien Muchembled's avatar Julien Muchembled

Add support for recent iproute, which now recognizes babel protocol

parent 06b13406
...@@ -343,7 +343,8 @@ def main(): ...@@ -343,7 +343,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 --default." " whereas you specified --default."
" 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