mirror_frr/tests
Philippe Guibert 7b3c6f8934 topotests: mpls vpn routes redistribution, add asbr test
This setup demonstrates the redistribution and the proper
switching operations in an asbr device.
The setup interconnects an internal AS with an external
connected AS.
- the iBGP AS uses BGP-LU as MPLS transport
- the eBGP peering is directly connected and does use the
'mpls bgp forwarding' configuration to accept exterior
updates.

The setup performs the following tests:
- it checks for end to end connectivity from one interior
host h1 to two external hosts h2, and h3.
- it checks that the proper label values are advertised
by the ASBR to the iBGP peer, and the eBGP peer.
- it checks that the 'show mpls table' has additional
MPLS entries that permit transit mpls traffic to transit
across the ASBR. That behaviour is possible with the
'mpls bgp allocate-label-on-nexthop-change' command.
- it checks that withdraw of routes will remve the MPLS
entries.
- it checks that by unconfiguring the 'next-hop-self' option,
the external routes advertised to the internal maintain the
next-hop.
- it checks that a second prefix advertised by r3 with the
same RD, but different label value is using a new label on r2,
and that this new label value is used.
- it checks that when filtering out prefixes from r1, on r2,
then the MPLS label is deallocated, and the MPLS entry is not
present.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-06-16 10:55:11 +02:00
..
bgpd bgpd: Treat withdraw variable as a bool 2023-04-06 17:41:32 -04:00
helpers lib: mgmtd: add manual vty server start option and use it 2023-05-30 02:10:20 -04:00
isisd isisd: add option to display isis routes as json 2023-04-18 11:33:15 +02:00
lib tests: Fix out of tree build for lua scripting 2023-05-09 02:05:44 +02:00
ospf6d *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospfd *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
topotests topotests: mpls vpn routes redistribution, add asbr test 2023-06-16 10:55:11 +02:00
zebra *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
.gitignore tests: new grpc topotest 2022-03-14 11:14:12 -04:00
Makefile build: non-recursive tests 2018-09-08 21:26:54 +02:00
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py *: reformat python files 2020-10-07 17:22:26 -04:00
subdir.am build: break up tests/subdir.am 2021-11-11 14:40:03 +01:00