]> 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)
committerEnke Chen <enchen@paloaltonetworks.com>
Wed, 16 Oct 2024 18:15:28 +0000 (11:15 -0700)
commitf65356d8bb9a43b1725fafdbd30aba0de9d214fa
treef7eb4ee6c9d51bfe17419820eac0b56b83c02601
parent75e34c032b97016d623e4e3c3b8a600c3890d4af
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>
bgpd/bgp_attr.h
bgpd/bgp_route.c
bgpd/bgp_routemap.c