summaryrefslogtreecommitdiff
path: root/bgpd/bgp_ecommunity.h
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-03-27 13:56:08 -0700
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-08-05 06:46:12 -0700
commit4248407b6d8788c4d8bb567ff13a54da733076cb (patch)
tree2e87dcb9c3d608f188d21f2195f67cabe4ed21bf /bgpd/bgp_ecommunity.h
parent17f8343cad784c88bef3f7a744a38be19d7069c0 (diff)
bgpd: extended community for EAD routes
1. EAD routes require support for ESI_LABEL extended community. The primary info in this EC is a flags the specifies if the ES is Single-active or active-acive. 2. Also fixed up ES_IMPORT_RT string. Support was added a long time ago for ESR/Type-4 routes but it has not really been exercised for MH functionality till now. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.h')
-rw-r--r--bgpd/bgp_ecommunity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h
index 7deae8e746..1e9ffcb678 100644
--- a/bgpd/bgp_ecommunity.h
+++ b/bgpd/bgp_ecommunity.h
@@ -76,6 +76,8 @@
#define ECOMMUNITY_EVPN_SUBTYPE_ND_ROUTER_FLAG 0x01
#define ECOMMUNITY_EVPN_SUBTYPE_ND_OVERRIDE_FLAG 0x02
+#define ECOMMUNITY_EVPN_SUBTYPE_ESI_SA_FLAG (1 << 0) /* single-active */
+
/* Low-order octet of the Extended Communities type field for OPAQUE types */
#define ECOMMUNITY_OPAQUE_SUBTYPE_ENCAP 0x0c