summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_label.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_label.h b/bgpd/bgp_label.h
index c98f4531f6..a0994d68a3 100644
--- a/bgpd/bgp_label.h
+++ b/bgpd/bgp_label.h
@@ -41,6 +41,9 @@ extern int bgp_nlri_parse_label (struct peer *peer, struct attr *attr,
static inline int
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) ||
(safi == SAFI_EVPN))
return 1;