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

This selftest is designed for testing the H.L2Encaps.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 a L2 VPN leveraged by hosts
for communicating with each other. Such routers make use of the SRv6
H.L2Encaps.Red behavior for applying SRv6 policies to L2 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_hl2encap_red_l2vpn_test.sh [new file with mode: 0755]