summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-10-27 13:57:35 +0200
committerGitHub <noreply@github.com>2018-10-27 13:57:35 +0200
commita755ec5e500dde4a7258145900fcba25e9aff448 (patch)
treedde66b73db7b062118d3a2ac0d62b81ffeda8107 /lib
parentMerge pull request #3199 from donaldsharp/eigrp_key (diff)
parentlib: change M:A:C to X:X:X:X:X:X (diff)
downloadfrr-a755ec5e500dde4a7258145900fcba25e9aff448.tar.xz
frr-a755ec5e500dde4a7258145900fcba25e9aff448.zip
Merge pull request #3206 from qlyoung/mac-token-change
lib: change M:A:C to X:X:X:X:X:X
Diffstat (limited to 'lib')
-rw-r--r--lib/command_lex.l4
-rw-r--r--lib/filter.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l
index 3b18b58a2..f361db78e 100644
--- a/lib/command_lex.l
+++ b/lib/command_lex.l
@@ -48,8 +48,8 @@ IPV4 A\.B\.C\.D
IPV4_PREFIX A\.B\.C\.D\/M
IPV6 X:X::X:X
IPV6_PREFIX X:X::X:X\/M
-MAC M:A:C
-MAC_PREFIX M:A:C\/M
+MAC X:X:X:X:X:X
+MAC_PREFIX X:X:X:X:X:X\/M
VARIABLE [A-Z][-_A-Z:0-9]+
WORD (\-|\+)?[a-zA-Z0-9\*][-+_a-zA-Z0-9\*]*
NUMBER (\-|\+)?[0-9]{1,20}
diff --git a/lib/filter.c b/lib/filter.c
index 0528b0f2a..1aae58b61 100644
--- a/lib/filter.c
+++ b/lib/filter.c
@@ -1302,7 +1302,7 @@ static int filter_set_zebra(struct vty *vty, const char *name_str,
DEFUN (mac_access_list,
mac_access_list_cmd,
- "mac access-list WORD <deny|permit> MAC",
+ "mac access-list WORD <deny|permit> X:X:X:X:X:X",
"Add a mac access-list\n"
"Add an access list entry\n"
"MAC zebra access-list name\n"
@@ -1316,7 +1316,7 @@ DEFUN (mac_access_list,
DEFUN (no_mac_access_list,
no_mac_access_list_cmd,
- "no mac access-list WORD <deny|permit> MAC",
+ "no mac access-list WORD <deny|permit> X:X:X:X:X:X",
NO_STR
"Remove a mac access-list\n"
"Remove an access list entry\n"