summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorFrancois Dumontet <francois.dumontet@6wind.com>2023-06-09 14:30:33 +0200
committerFrancois Dumontet <francois.dumontet@6wind.com>2023-06-26 14:27:27 +0200
commit442e2edcfaefa004bc3dff62dc35b03abd34ee71 (patch)
tree2c397083179cc887d8bf9b96f059a43d02873e4f /bgpd/bgp_zebra.c
parenttests: add bgp colored extended community test (diff)
downloadfrr-442e2edcfaefa004bc3dff62dc35b03abd34ee71.tar.xz
frr-442e2edcfaefa004bc3dff62dc35b03abd34ee71.zip
bgpd: add functions related to srte_color management
Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 1965cd270..7e773b6cd 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -1440,7 +1440,7 @@ void bgp_zebra_announce(struct bgp_dest *dest, const struct prefix *p,
if (CHECK_FLAG(info->attr->flag,
ATTR_FLAG_BIT(BGP_ATTR_SRTE_COLOR)))
- api_nh->srte_color = info->attr->srte_color;
+ api_nh->srte_color = bgp_attr_get_color(info->attr);
if (bgp_debug_zebra(&api.prefix)) {
if (mpinfo->extra) {