mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-16 23:20:16 +00:00
Merge pull request #10539 from chiragshah6/evpn_dev1
bgpd: evpn route-map match ead type-1 route-type
This commit is contained in:
commit
13a95e5382
@ -1039,10 +1039,14 @@ static void *route_match_evpn_route_type_compile(const char *arg)
|
||||
|
||||
route_type = XMALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(uint8_t));
|
||||
|
||||
if (strncmp(arg, "ma", 2) == 0)
|
||||
if (strncmp(arg, "ea", 2) == 0)
|
||||
*route_type = BGP_EVPN_AD_ROUTE;
|
||||
else if (strncmp(arg, "ma", 2) == 0)
|
||||
*route_type = BGP_EVPN_MAC_IP_ROUTE;
|
||||
else if (strncmp(arg, "mu", 2) == 0)
|
||||
*route_type = BGP_EVPN_IMET_ROUTE;
|
||||
else if (strncmp(arg, "es", 2) == 0)
|
||||
*route_type = BGP_EVPN_ES_ROUTE;
|
||||
else
|
||||
*route_type = BGP_EVPN_IP_PREFIX_ROUTE;
|
||||
|
||||
@ -4167,14 +4171,18 @@ static const char *parse_evpn_rt_type(const char *num_rt_type)
|
||||
|
||||
DEFUN_YANG (match_evpn_route_type,
|
||||
match_evpn_route_type_cmd,
|
||||
"match evpn route-type <macip|2|multicast|3|prefix|5>",
|
||||
"match evpn route-type <ead|1|macip|2|multicast|3|es|4|prefix|5>",
|
||||
MATCH_STR
|
||||
EVPN_HELP_STR
|
||||
EVPN_TYPE_HELP_STR
|
||||
EVPN_TYPE_1_HELP_STR
|
||||
EVPN_TYPE_1_HELP_STR
|
||||
EVPN_TYPE_2_HELP_STR
|
||||
EVPN_TYPE_2_HELP_STR
|
||||
EVPN_TYPE_3_HELP_STR
|
||||
EVPN_TYPE_3_HELP_STR
|
||||
EVPN_TYPE_4_HELP_STR
|
||||
EVPN_TYPE_4_HELP_STR
|
||||
EVPN_TYPE_5_HELP_STR
|
||||
EVPN_TYPE_5_HELP_STR)
|
||||
{
|
||||
@ -4194,15 +4202,19 @@ DEFUN_YANG (match_evpn_route_type,
|
||||
|
||||
DEFUN_YANG (no_match_evpn_route_type,
|
||||
no_match_evpn_route_type_cmd,
|
||||
"no match evpn route-type <macip|2|multicast|3|prefix|5>",
|
||||
"no match evpn route-type <ead|1|macip|2|multicast|3|es|4|prefix|5>",
|
||||
NO_STR
|
||||
MATCH_STR
|
||||
EVPN_HELP_STR
|
||||
EVPN_TYPE_HELP_STR
|
||||
EVPN_TYPE_1_HELP_STR
|
||||
EVPN_TYPE_1_HELP_STR
|
||||
EVPN_TYPE_2_HELP_STR
|
||||
EVPN_TYPE_2_HELP_STR
|
||||
EVPN_TYPE_3_HELP_STR
|
||||
EVPN_TYPE_3_HELP_STR
|
||||
EVPN_TYPE_4_HELP_STR
|
||||
EVPN_TYPE_4_HELP_STR
|
||||
EVPN_TYPE_5_HELP_STR
|
||||
EVPN_TYPE_5_HELP_STR)
|
||||
{
|
||||
|
@ -215,6 +215,18 @@ Route Map Match Command
|
||||
This is a ZEBRA specific match command. The number is a range from (0-255).
|
||||
Matches the originating protocols instance specified.
|
||||
|
||||
.. clicmd:: match evpn route-type ROUTE_TYPE_NAME
|
||||
|
||||
This is a BGP EVPN specific match command. It matches to EVPN route-type
|
||||
from type-1 (EAD route-type) to type-5 (Prefix route-type).
|
||||
User can provide in an integral form (1-5) or string form of route-type
|
||||
(i.e ead, macip, multicast, es, prefix).
|
||||
|
||||
.. clicmd:: match evpn vni NUMBER
|
||||
|
||||
This is a BGP EVPN specific match command which matches to EVPN VNI id.
|
||||
The number is a range from (1-6777215).
|
||||
|
||||
.. _route-map-set-command:
|
||||
|
||||
Route Map Set Command
|
||||
|
@ -532,6 +532,16 @@ module frr-bgp-route-map {
|
||||
description
|
||||
"Prefix route";
|
||||
}
|
||||
enum "ead" {
|
||||
value 3;
|
||||
description
|
||||
"Ethernet Auto-Discovery route";
|
||||
}
|
||||
enum "es" {
|
||||
value 4;
|
||||
description
|
||||
"Ethernet Segment route";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user