]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: fix bgp label value when static route used
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 12 Apr 2023 13:51:25 +0000 (15:51 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 12 Apr 2023 15:45:48 +0000 (17:45 +0200)
commitf8141f4a65c80aa436fce0845f7ae03d18013612
treebbef2d617cf84ee654f74320bf45e9a888332d00
parent9213d694992ee7618d2dcd22f05df09b4f0f7323
bgpd: fix bgp label value when static route used

The BGP local label value is not re-set when the prefix
is either a network or an aggregate prefix. Ensure to
get the appropriate label value each time the 'need_imp_null_label()'
function has to return true.

Fixes: 7ee70320d370 ("bgpd: add cli command to control explicit-null label usage")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c