-
Notifications
You must be signed in to change notification settings - Fork 746
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
SRv6 uSID BGP L3VPN services #15510
base: master
Are you sure you want to change the base?
SRv6 uSID BGP L3VPN services #15510
Conversation
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
535afcd
to
8a496ac
Compare
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
8a496ac
to
6f4a59a
Compare
@cscarpitta , you should add a test plan file |
6f4a59a
to
684f29f
Compare
Signed-off-by: carmine <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
684f29f
to
0fb8022
Compare
@BYGX-wcr Thanks for the review. I added the test plan. |
tests/srv6/test_srv6.py
Outdated
cmd = "redis-cli -n 0 hgetall \"SRV6_SID_LIST_TABLE:Vrf10:{}\"".format(V6_PREFIX_NBR) | ||
result = duthost.shell(cmd) | ||
result = result['stdout'] | ||
Logger.info("Route table nexthops are %s", result) |
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 log statements seems to be not updated accordingly? You are checking SID_LIST_TABLE here right? The log statement for MY_SID table seems to be not correct as well.
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.
Yes, indeed the log statement was incorrect. I fixed it. Thanks.
tests/srv6/test_srv6.py
Outdated
" -c 'exit'" | ||
" -c 'exit'" | ||
" -c 'exit'" | ||
" -c 'router bgp 64600'" |
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.
Where do we configure the BGP session in this FRR config?
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.
In the FRR config, the line below configures the BGP session with the other node.
-c 'neighbor 2001:db8:2::1 remote-as 65100'
tests/srv6/test_srv6.py
Outdated
duthost.shell(cmd) | ||
cmd = "config interface vrf bind Loopback1 Vrf10" | ||
duthost.shell(cmd) | ||
cmd = "config interface ip add Loopback1 2001:db8:2::1" |
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.
although this may not have any functional impact, but we'd better use a different Loopback address for DUT instead of reusing the Loopback address.
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.
I agree with your point. I assigned the neighbor a Loopback address different from the DUT
tests/srv6/test_srv6.py
Outdated
result = result['stdout'] | ||
Logger.info("Route table nexthops are %s", result) | ||
py_assert(result != "", "The DUT did not program SRv6 MySid entry") | ||
py_assert("action: udt6" not in result, "The DUT did not program SRv6 MySid entry, missing 'action' field") |
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.
where do you configure the udt6 action?
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.
uDT6 SID is created automatically by BGP.
When you set sid vpn export auto
under the address-family ipv6 unicast
section in the FRR config, BGP automatically creates the uDT6 SID.
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
…the Loopback address of DUT Signed-off-by: Carmine Scarpitta <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…the Loopback address of DUT Signed-off-by: Carmine Scarpitta <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Carmine Scarpitta <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @cscarpitta, Two issues:
|
Add test cases for SRv6
Type of change
Supported testbed topology if it's a new test case?
T0