selftests: seg6: add selftest for SRv6 H.Encaps.Red behavior
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Wed, 27 Jul 2022 18:54:07 +0000 (20:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jul 2022 11:14:03 +0000 (12:14 +0100)
commitb35b81ee85418d9e22fd6bc90c02580ad9d4ec9f
tree033dffdb4bdb8ee29b552be8c39e61d08b73f7ab
parent1820ab7ba632b60f9b1ecb541f7845f90bce2722
selftests: seg6: add selftest for SRv6 H.Encaps.Red behavior

This selftest is designed for testing the H.Encaps.Red 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 L3 VPNs leveraged by hosts
for communicating with each other. Such routers make use of the SRv6
H.Encaps.Red behavior for applying SRv6 policies to L3 traffic coming
from hosts.

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

Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/srv6_hencap_red_l3vpn_test.sh [new file with mode: 0755]