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
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.
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.
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.
Where do we configure the BGP session in this FRR config?
There was a problem hiding this comment.
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.
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.
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.
where do you configure the udt6 action?
There was a problem hiding this comment.
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.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Hi @cscarpitta, Two issues:
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
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]>
…the Loopback address of DUT Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
384e367 to
3769145
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
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). |
Signed-off-by: Carmine Scarpitta <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Add test cases for SRv6
Type of change
Supported testbed topology if it's a new test case?
T0