summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-06-21 10:02:46 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 16:09:37 +0200
commitd37ba5499ec01284c91250db0c17016c37f13a84 (patch)
treef68caea9e457a1d7381ca07b2232a74a6844af71 /vtysh/vtysh_config.c
parentbgpd: Fix incorrect AFI reference (diff)
downloadfrr-d37ba5499ec01284c91250db0c17016c37f13a84.tar.xz
frr-d37ba5499ec01284c91250db0c17016c37f13a84.zip
bgpd, lib, vtysh: Added support for mac filtering in route-maps
1. Added support to create mac filters 2. Enabled route-map commands for EVPN address family 3. Provision to add mac filters under match clause in route-maps Ticket: CM-16349 Review: CCR-6190 Unit-test: Manual (logs attached to ticket) Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 74509d1ec..d388b568a 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -222,6 +222,10 @@ void vtysh_config_parse_line(void *arg, const char *line)
strlen("ipv6 access-list"))
== 0)
config = config_get(ACCESS_IPV6_NODE, line);
+ else if (strncmp(line, "mac access-list",
+ strlen("mac access-list"))
+ == 0)
+ config = config_get(ACCESS_MAC_NODE, line);
else if (strncmp(line, "ip prefix-list",
strlen("ip prefix-list"))
== 0)
@@ -300,9 +304,10 @@ void vtysh_config_parse_line(void *arg, const char *line)
#define NO_DELIMITER(I) \
((I) == ACCESS_NODE || (I) == PREFIX_NODE || (I) == IP_NODE \
|| (I) == AS_LIST_NODE || (I) == COMMUNITY_LIST_NODE \
- || (I) == ACCESS_IPV6_NODE || (I) == PREFIX_IPV6_NODE \
- || (I) == SERVICE_NODE || (I) == FORWARDING_NODE || (I) == DEBUG_NODE \
- || (I) == AAA_NODE || (I) == VRF_DEBUG_NODE || (I) == MPLS_NODE)
+ || (I) == ACCESS_IPV6_NODE || (I) == ACCESS_MAC_NODE \
+ || (I) == PREFIX_IPV6_NODE || (I) == SERVICE_NODE \
+ || (I) == FORWARDING_NODE || (I) == DEBUG_NODE || (I) == AAA_NODE \
+ || (I) == VRF_DEBUG_NODE || (I) == MPLS_NODE)
/* Display configuration to file pointer. */
void vtysh_config_dump(FILE *fp)