Skip to content

Commit

Permalink
bgpd: add EVPN route type msg list
Browse files Browse the repository at this point in the history
Adds a msg list for getting strings mapping to enum bgp_evpn_route_type

Ticket: #3318830

Signed-off-by: Trey Aspelund <[email protected]>
  • Loading branch information
Trey Aspelund authored and raja-rajasekar committed Nov 26, 2024
1 parent b27892b commit 55f056c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bgpd/bgp_evpn_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
#define BGP_EVPN_TYPE4_V4_PSIZE 23
#define BGP_EVPN_TYPE4_V6_PSIZE 34

static const struct message bgp_evpn_route_type_str[] = {
{BGP_EVPN_UNKN_ROUTE, "UNKNOWN"},
{BGP_EVPN_AD_ROUTE, "AD"},
{BGP_EVPN_MAC_IP_ROUTE, "MACIP"},
{BGP_EVPN_IMET_ROUTE, "IMET"},
{BGP_EVPN_ES_ROUTE, "ES"},
{BGP_EVPN_IP_PREFIX_ROUTE, "IP-PREFIX"},
{0}};

RB_HEAD(bgp_es_evi_rb_head, bgp_evpn_es_evi);
RB_PROTOTYPE(bgp_es_evi_rb_head, bgp_evpn_es_evi, rb_node,
bgp_es_evi_rb_cmp);
Expand Down
1 change: 1 addition & 0 deletions lib/prefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extern "C" {

/* EVPN route types. */
typedef enum {
BGP_EVPN_UNKN_ROUTE = 0,
BGP_EVPN_AD_ROUTE = 1, /* Ethernet Auto-Discovery (A-D) route */
BGP_EVPN_MAC_IP_ROUTE, /* MAC/IP Advertisement route */
BGP_EVPN_IMET_ROUTE, /* Inclusive Multicast Ethernet Tag route */
Expand Down

0 comments on commit 55f056c

Please sign in to comment.