mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 04:07:36 +00:00
bgpd: Additional check on presence of tag/label
In the case of EVPN, not all EVPN routes will necessarily have a tag/label. Do an additional check on presence of tag, where needed. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
parent
5b4168879d
commit
0ee26848f3
@ -41,6 +41,9 @@ extern int bgp_nlri_parse_label (struct peer *peer, struct attr *attr,
|
|||||||
static inline int
|
static inline int
|
||||||
bgp_labeled_safi (safi_t safi)
|
bgp_labeled_safi (safi_t safi)
|
||||||
{
|
{
|
||||||
|
/* NOTE: This API really says a label (tag) MAY be present. Not all EVPN
|
||||||
|
* routes will have a label.
|
||||||
|
*/
|
||||||
if ((safi == SAFI_LABELED_UNICAST) || (safi == SAFI_MPLS_VPN) ||
|
if ((safi == SAFI_LABELED_UNICAST) || (safi == SAFI_MPLS_VPN) ||
|
||||||
(safi == SAFI_EVPN))
|
(safi == SAFI_EVPN))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user