-
Notifications
You must be signed in to change notification settings - Fork 372
T7432: RPKI VRF Support #4497
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
base: current
Are you sure you want to change the base?
T7432: RPKI VRF Support #4497
Conversation
👍 |
6d47fa7
to
c673102
Compare
0e108f4
to
db24f1e
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.
You do not set a VRF table id in your smoketests which makes them fail:
======================================================================
ERROR: test_rpki_ssh (__main__.TestProtocolsRPKI.test_rpki_ssh)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/libexec/vyos/tests/smoke/cli/test_protocols_rpki.py", line 211, in test_rpki_ssh
self.cli_commit()
File "/usr/libexec/vyos/tests/smoke/cli/base_vyostest_shim.py", line 103, in cli_commit
out = self._session.commit()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/configsession.py", line 280, in commit
out = self.__run_command([COMMIT])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/configsession.py", line 210, in __run_command
raise ConfigSessionError(output)
vyos.configsession.ConfigSessionError: [ vrf ]
VRF "blue" table id is mandatory!
[[vrf]] failed
[ pki ]
Embedded PKI openssh with name "rpki-smoketest" is still in use by CLI
path "protocols rpki cache 192.0.2.3 ssh key"
[[pki]] failed
[[vrf name blue protocols rpki]] failed
Commit failed
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.
The proposed CLI op-mode commands differ from other VRF enabled implementations:
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.
The general implementation looks good and follows established patterns for FRR.
Smoketests still fail:
[email protected]:~$ /usr/libexec/vyos/tests/smoke/cli/test_protocols_rpki.py
test_rpki (__main__.TestProtocolsRPKI.test_rpki) ... ok
test_rpki_source_address (__main__.TestProtocolsRPKI.test_rpki_source_address) ... ok
test_rpki_ssh (__main__.TestProtocolsRPKI.test_rpki_ssh) ... ERROR
test_rpki_verify_preference (__main__.TestProtocolsRPKI.test_rpki_verify_preference) ... ok
======================================================================
ERROR: test_rpki_ssh (__main__.TestProtocolsRPKI.test_rpki_ssh)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/libexec/vyos/tests/smoke/cli/test_protocols_rpki.py", line 217, in test_rpki_ssh
self.cli_commit()
File "/usr/libexec/vyos/tests/smoke/cli/base_vyostest_shim.py", line 103, in cli_commit
out = self._session.commit()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/configsession.py", line 280, in commit
out = self.__run_command([COMMIT])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/configsession.py", line 210, in __run_command
raise ConfigSessionError(output)
vyos.configsession.ConfigSessionError: [ pki ]
Embedded PKI openssh with name "rpki-smoketest" is still in use by CLI
path "protocols rpki cache 192.0.2.3 ssh key"
[[pki]] failed
[ vrf name blue protocols rpki ]
RPKI+SSH requires key to be defined!
[[vrf name blue protocols rpki]] failed
Commit failed
----------------------------------------------------------------------
Ran 4 tests in 65.914s
FAILED (errors=1)
781b71c
to
0a5062c
Compare
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.
New feature additiona vailable with FRR10.2 - implementation follows established paths for FRR
Change summary
Add support for RPKI in a VRF
TODO:
Need to add to documentation
Op-mode commands
Configuration Commands
Types of changes
Related Task(s)
https://vyos.dev/T7432
Related PR(s)
How to test / Smoketest result
Checklist: