]> git.proxmox.com Git - mirror_frr.git/commit
topotests: add bgp_asdot_regex test
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 28 Nov 2022 09:13:07 +0000 (10:13 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 10 Feb 2023 09:27:23 +0000 (10:27 +0100)
commit8650fef03e736b4209a8acb6cb3cf022be0aabb8
tree3ad8f61996e23c6d289f196fb40b20c894c067f4
parent6ccfd1030b42771cfb182e9e6ad53c5368d4b10e
topotests: add bgp_asdot_regex test

This test ensures that the regex used to filter as paths has to
be expressed in the asnotation of the BGP instance where prefixes
are received. 2 aspaths have been forged, both for AS 65540, but
only the former is expressed in asdot. If the local BGP instance
is expressed in asdot format, then only the former ASPATH will
match properly the incoming update. Reversely, when the local BGP
instance is expressed in plain format, then only the latter ASPATH
will match properly the incoming update.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/bgp_asdot_regex/__init__.py [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/r1/bgpd.conf [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/r1/show_bgp_ipv4.json [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/r1/zebra.conf [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/r2/bgpd.conf [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/r2/show_bgp_ipv4.json [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/r2/zebra.conf [new file with mode: 0644]
tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py [new file with mode: 0644]