-
Notifications
You must be signed in to change notification settings - Fork 376
T7510: ospfd.frr.j2 ospf nssa translation error - fix template #4536
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
T7510: ospfd.frr.j2 ospf nssa translation error - fix template #4536
Conversation
👍 |
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 also update the smoketests to check if the entry is available in Frr config when specified on the CLI.
https://docs.vyos.io/en/latest/contributing/testing.html#manual-smoketest-run
Hi, sorry, if my question look stupid, did I need to modify "test_protocols_ospf.py" to check the command ? |
Yes, there you can add the code path to perform the smoketest. Set the CLI node and validate that it's present int the resulting FRR configuration. |
To keep existing CLI behavior use a Warning() to prompt the user for an invalid configuration. It is not possible to have more the one area-type defined per area logically - the CLI does support it. In addition the backbone area cannot be of type STUB or NSSA. CLI configuration should be cleaned up using a migrator in the future.
f696473
to
323ef23
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.
Implemented smoketests:
$ /usr/libexec/vyos/tests/smoke/cli/test_protocols_ospf.py
test_ospf_18_area_translate_no_summary (__main__.TestProtocolsOSPF.test_ospf_0118_area_translate_no_summary) ... ok
test_ospf_01_defaults (__main__.TestProtocolsOSPF.test_ospf_01_defaults) ... ok
test_ospf_02_simple (__main__.TestProtocolsOSPF.test_ospf_02_simple) ... ok
test_ospf_03_access_list (__main__.TestProtocolsOSPF.test_ospf_03_access_list) ... ok
test_ospf_04_default_originate (__main__.TestProtocolsOSPF.test_ospf_04_default_originate) ... ok
test_ospf_05_options (__main__.TestProtocolsOSPF.test_ospf_05_options) ... ok
test_ospf_06_neighbor (__main__.TestProtocolsOSPF.test_ospf_06_neighbor) ... ok
test_ospf_07_redistribute (__main__.TestProtocolsOSPF.test_ospf_07_redistribute) ... ok
test_ospf_08_virtual_link (__main__.TestProtocolsOSPF.test_ospf_08_virtual_link) ... ok
test_ospf_09_interface_configuration (__main__.TestProtocolsOSPF.test_ospf_09_interface_configuration) ... ok
test_ospf_11_interface_area (__main__.TestProtocolsOSPF.test_ospf_11_interface_area) ... ok
test_ospf_12_vrfs (__main__.TestProtocolsOSPF.test_ospf_12_vrfs) ... ok
test_ospf_13_export_list (__main__.TestProtocolsOSPF.test_ospf_13_export_list) ... ok
test_ospf_14_segment_routing_configuration (__main__.TestProtocolsOSPF.test_ospf_14_segment_routing_configuration) ... ok
test_ospf_15_ldp_sync (__main__.TestProtocolsOSPF.test_ospf_15_ldp_sync) ... ok
test_ospf_16_graceful_restart (__main__.TestProtocolsOSPF.test_ospf_16_graceful_restart) ... ok
test_ospf_17_duplicate_area_network (__main__.TestProtocolsOSPF.test_ospf_17_duplicate_area_network) ... ok
----------------------------------------------------------------------
Ran 17 tests in 271.259s
OK
CI integration 👍 passed! Details
|
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.
A straightforward addition, covered by smoke tests. No objections.
Change summary
Hi, I have updated ospf frr template to fix nssa translation
Types of changes
Jinja2 template patching as suggested in the forum.
https://forum.vyos.io/t/ospf-area-type-nssa-translate-never/16593/8
Related Task(s)
Related PR(s)
How to test / Smoketest result
Checklist: