summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_label.h
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2017-05-13 22:37:13 +0200
committerLou Berger <lberger@labn.net>2017-05-13 22:37:13 +0200
commitb380f68a7ae1ba89c4289c86ccc0ba0cf8aa2f87 (patch)
treee5d8b6cf5602ea14d5c608ec7e01652d829d2747 /bgpd/bgp_label.h
parentMerge pull request #525 from qlyoung/frr-script-fix (diff)
downloadfrr-b380f68a7ae1ba89c4289c86ccc0ba0cf8aa2f87.tar.xz
frr-b380f68a7ae1ba89c4289c86ccc0ba0cf8aa2f87.zip
bgpd: add epvn as labeled safi type (ISSUE #471)
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'bgpd/bgp_label.h')
-rw-r--r--bgpd/bgp_label.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_label.h b/bgpd/bgp_label.h
index 49a7b945a..b45e791ce 100644
--- a/bgpd/bgp_label.h
+++ b/bgpd/bgp_label.h
@@ -42,7 +42,8 @@ extern int bgp_nlri_parse_label (struct peer *peer, struct attr *attr,
static inline int
bgp_labeled_safi (safi_t safi)
{
- if ((safi == SAFI_LABELED_UNICAST) || (safi == SAFI_MPLS_VPN))
+ if ((safi == SAFI_LABELED_UNICAST) || (safi == SAFI_MPLS_VPN) ||
+ (safi == SAFI_EVPN))
return 1;
return 0;
}