Skip to content

Commit 19d6356

Browse files
skorpion17Paolo Abeni
authored andcommitted
selftests: seg6: add selftest for NEXT-C-SID flavor in SRv6 End behavior
This selftest is designed for testing the support of NEXT-C-SID flavor for SRv6 End behavior. It instantiates a virtual network composed of several nodes: hosts and SRv6 routers. Each node is realized using a network namespace that is properly interconnected to others through veth pairs. The test considers SRv6 routers implementing IPv4/IPv6 L3 VPNs leveraged by hosts for communicating with each other. Such routers i) apply different SRv6 Policies to the traffic received from connected hosts, considering the IPv4 or IPv6 protocols; ii) use the NEXT-C-SID compression mechanism for encoding several SRv6 segments within a single 128-bit SID address, referred to as a Compressed SID (C-SID) container. The NEXT-C-SID is provided as a "flavor" of the SRv6 End behavior, enabling it to properly process the C-SID containers. The correct execution of the enabled NEXT-C-SID SRv6 End behavior is verified through reachability tests carried out between hosts belonging to the same VPN. Signed-off-by: Andrea Mayer <[email protected]> Acked-by: David Ahern <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 848f3c0 commit 19d6356

File tree

2 files changed

+1146
-0
lines changed

2 files changed

+1146
-0
lines changed

tools/testing/selftests/net/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ TEST_PROGS += srv6_end_dt4_l3vpn_test.sh
3737
TEST_PROGS += srv6_end_dt6_l3vpn_test.sh
3838
TEST_PROGS += srv6_hencap_red_l3vpn_test.sh
3939
TEST_PROGS += srv6_hl2encap_red_l2vpn_test.sh
40+
TEST_PROGS += srv6_end_next_csid_l3vpn_test.sh
4041
TEST_PROGS += vrf_strict_mode_test.sh
4142
TEST_PROGS += arp_ndisc_evict_nocarrier.sh
4243
TEST_PROGS += ndisc_unsolicited_na_test.sh

0 commit comments

Comments
 (0)