Merge pull request #5814 from Jafaral/nhrp-no

nhrpd: allow no nhrp map cmd to match the configured cmd
This commit is contained in:
Donald Sharp 2020-02-16 14:15:42 -05:00 committed by GitHub
commit b15968b11f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,13 +513,15 @@ DEFUN(if_nhrp_map, if_nhrp_map_cmd,
} }
DEFUN(if_no_nhrp_map, if_no_nhrp_map_cmd, DEFUN(if_no_nhrp_map, if_no_nhrp_map_cmd,
"no " AFI_CMD " nhrp map <A.B.C.D|X:X::X:X>", "no " AFI_CMD " nhrp map <A.B.C.D|X:X::X:X> [<A.B.C.D|local>]",
NO_STR NO_STR
AFI_STR AFI_STR
NHRP_STR NHRP_STR
"Nexthop Server configuration\n" "Nexthop Server configuration\n"
"IPv4 protocol address\n" "IPv4 protocol address\n"
"IPv6 protocol address\n") "IPv6 protocol address\n"
"IPv4 NBMA address\n"
"Handle protocol address locally\n")
{ {
VTY_DECLVAR_CONTEXT(interface, ifp); VTY_DECLVAR_CONTEXT(interface, ifp);
afi_t afi = cmd_to_afi(argv[1]); afi_t afi = cmd_to_afi(argv[1]);