]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix several issues in sourcing AIGP attribute
authorEnke Chen <enchen@paloaltonetworks.com>
Wed, 16 Oct 2024 18:15:28 +0000 (11:15 -0700)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 17 Oct 2024 05:57:12 +0000 (05:57 +0000)
commit345528e49b1b410eeb23614af2929e6f5344728d
tree73cabd345f685d5fef04853afedc774e7fa09f21
parent77f16ac69abcf74aed6c782fb032e3d021888de6
bgpd: fix several issues in sourcing AIGP attribute

Fix several issues in sourcing AIGP attribute:

1) AIGP should not be set as default for a redistributed route or a
   static network. It should be set by config instead.

2) AIGP sourced by "set aigp-metric igp-metric" in a route-map does
   not set the correct value for a redistributed route.

3) When redistribute a connected route like loopback, the AGIP (with
   value 0) is sourced by "set aigp-metric igp-metric", but the
   attribute is not propagated as the attribute flag is not set.

Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
(cherry picked from commit f65356d8bb9a43b1725fafdbd30aba0de9d214fa)
bgpd/bgp_attr.h
bgpd/bgp_route.c
bgpd/bgp_routemap.c