selftests: seg6: add selftest for PSP flavor in SRv6 End behavior
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Wed, 15 Feb 2023 13:46:59 +0000 (14:46 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Feb 2023 12:18:06 +0000 (13:18 +0100)
commit5198cb408fcfc0b49c418314570423efe2217754
treebb97f1a1c4c53e13d72df3aa40babf9ef28c2392
parentbdf3c0b9c10b44c9355dd68f359bad25489445b6
selftests: seg6: add selftest for PSP flavor in SRv6 End behavior

This selftest is designed for testing the PSP flavor in 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 makes use of the SRv6 End behavior and of the PSP flavor needed
for removing the SRH from the IPv6 header at the penultimate node.

The correct execution of the behavior is verified through reachability
tests carried out between hosts.

Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Signed-off-by: Paolo Lungaroni <paolo.lungaroni@uniroma2.it>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/srv6_end_flavors_test.sh [new file with mode: 0755]