selftests: forwarding: Add MPLS L2VPN test
authorGuillaume Nault <gnault@redhat.com>
Wed, 2 Dec 2020 14:35:43 +0000 (15:35 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Dec 2020 01:44:06 +0000 (17:44 -0800)
commit41fdfffd5783db62bb9e00605eee14c69b9c0974
treec8c881c30fc1fca704185c4e8963247929d1a964
parent0911d463b30213ffc39670133fbd137a264aafd5
selftests: forwarding: Add MPLS L2VPN test

Connect hosts H1 and H2 using two intermediate encapsulation routers
(LER1 and LER2). These routers encapsulate traffic from the hosts,
including the original Ethernet header, into MPLS.

Use ping to test reachability between H1 and H2.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Link: https://lore.kernel.org/r/625f5c1aafa3a8085f8d3e082d680a82e16ffbaa.1606918980.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/Makefile
tools/testing/selftests/net/forwarding/config
tools/testing/selftests/net/forwarding/tc_mpls_l2vpn.sh [new file with mode: 0755]