diff options
| author | vivek <vivek@cumulusnetworks.com> | 2017-05-24 17:50:29 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-12 12:48:04 -0400 |
| commit | 0ee26848f37d44ca5f1285e05f06bedd975a851c (patch) | |
| tree | 6e9a7435a08bba119d9c2fdeb8118089fea82e8d | |
| parent | 5b4168879d8e0cd663e4a4a7660f841d1e038d66 (diff) | |
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>
| -rw-r--r-- | bgpd/bgp_label.h | 3 |
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; |
