diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-17 22:25:29 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-17 22:50:44 +0300 | 
| commit | 619321de784a1a7ffd05b45f4ce7d2e3b6a870f8 (patch) | |
| tree | 4d856fb402a0bc5114106e17dca1d145fa88ecde /bgpd/bgp_zebra.c | |
| parent | 5ef6a2bb54eacc35854e9db8dde71c406fb9364c (diff) | |
bgpd: Drop SRTE_COLOR attribute flag
SRTE_COLOR is not defined at all as an attribute, it was a mistake from the
beginning.
SRTE_COLOR is extended community, can't see the reason having it as a community,
and a separate attribute.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_zebra.c')
| -rw-r--r-- | bgpd/bgp_zebra.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 9a81965773..debf146a05 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1308,9 +1308,7 @@ static void bgp_zebra_announce_parse_nexthop(  		else  			api_nh = &api->backup_nexthops[*valid_nh_count]; -		if (CHECK_FLAG(info->attr->flag, -			       ATTR_FLAG_BIT(BGP_ATTR_SRTE_COLOR))) -			api_nh->srte_color = bgp_attr_get_color(info->attr); +		api_nh->srte_color = bgp_attr_get_color(info->attr);  		if (bgp_debug_zebra(&api->prefix)) {  			if (mpinfo->extra) { @@ -1581,7 +1579,7 @@ bgp_zebra_announce_actual(struct bgp_dest *dest, struct bgp_path_info *info,  		api.tableid = info->attr->rmap_table_id;  	} -	if (CHECK_FLAG(info->attr->flag, ATTR_FLAG_BIT(BGP_ATTR_SRTE_COLOR))) +	if (info->attr->srte_color)  		SET_FLAG(api.message, ZAPI_MESSAGE_SRTE);  	/* Metric is currently based on the best-path only */  | 
