-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T5725: Improve protocol IS-IS config validation #3643
Conversation
This check is not present on |
src/conf_mode/protocols_isis.py
Outdated
@@ -69,6 +69,15 @@ def get_config(config=None): | |||
# Merge policy dict into "regular" config dict | |||
isis = dict_merge(tmp, isis) | |||
|
|||
for interface in isis.get('interface'): | |||
# when we use tunnel interface necessary additional config validate | |||
if 'tun' in interface: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use: if interface.startswith('tun')
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/conf_mode/protocols_isis.py
Outdated
@@ -103,6 +112,10 @@ def verify(isis): | |||
f'Recommended area lsp-mtu {recom_area_mtu} or less ' \ | |||
'(calculated on MTU size).') | |||
|
|||
if 'tun' in interface: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use: if interface.startswith('tun')
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/conf_mode/protocols_isis.py
Outdated
@@ -103,6 +112,10 @@ def verify(isis): | |||
f'Recommended area lsp-mtu {recom_area_mtu} or less ' \ | |||
'(calculated on MTU size).') | |||
|
|||
if 'tun' in interface: | |||
if not isis.get('tunnel_config').get(interface).get('remote'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please stick to the common pattern and use vyos.utils.dict_search()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
this problem reproduces only in 1.3 version, current and sagitta works fine without this check. |
d0f49ba
to
aec2708
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug only present with FRR 7.5.
Working with FRR 9.1+
Change Summary
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
How to test
check frr config:
Smoketest result
Checklist: