]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: add 'set as-path replace' with a configured ASN
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 19 Jun 2023 14:22:55 +0000 (16:22 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 28 Jun 2023 19:21:55 +0000 (21:21 +0200)
commita3f0a1f5ed25af4affe426a1c5f907e787bb3ae2
treed3052e62ebf741e8e68a272f93473795d97db977
parent07a2b9d41ee07f845121c117e2ba8586944371f6
bgpd: add 'set as-path replace' with a configured ASN

There is no route-map set action to replace any ASN,
or a part of an ASN, with a configured ASN.

The current commit adds a new command to use a configured
ASN as replacement, instead of using the local as number.

> set as-path replace any 65500

Update the 'bgp_set_aspath_replace' test.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_routemap.c
doc/user/bgp.rst
tests/topotests/bgp_set_aspath_replace/r1/bgpd.conf
tests/topotests/bgp_set_aspath_replace/test_bgp_set_aspath_replace.py