From 59768a630d7cc40e245d69c9c601b6902659c1ef Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 26 Oct 2016 08:11:12 -0400 Subject: [PATCH] ospfd: Add 'no ...' form of some commands to cli Also add the ability to specify some or all of the no command. Signed-off-by: Donald Sharp --- ospfd/ospf_ri.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c index b85287197f..65659709b2 100644 --- a/ospfd/ospf_ri.c +++ b/ospfd/ospf_ri.c @@ -1313,10 +1313,11 @@ DEFUN (pce_address, DEFUN (no_pce_address, no_pce_address_cmd, - "no pce address", + "no pce address {A.B.C.D}", NO_STR PCE_STR - "Disable PCE address\n") + "Disable PCE address\n" + "PCE address in IPv4 address format\n") { unset_param (&OspfRI.pce_info.pce_address.header); @@ -1362,10 +1363,11 @@ DEFUN (pce_path_scope, DEFUN (no_pce_path_scope, no_pce_path_scope_cmd, - "no pce scope", + "no pce scope {BITPATTERN}", NO_STR PCE_STR - "Disable PCE path scope\n") + "Disable PCE path scope\n" + "32-bit Hexadecimal value\n") { unset_param (&OspfRI.pce_info.pce_address.header); @@ -1653,7 +1655,9 @@ ospf_router_info_register_vty (void) install_element (OSPF_NODE, &router_info_as_cmd); install_element (OSPF_NODE, &no_router_info_cmd); install_element (OSPF_NODE, &pce_address_cmd); + install_element (OSPF_NODE, &no_pce_address_cmd); install_element (OSPF_NODE, &pce_path_scope_cmd); + install_element (OSPF_NODE, &no_pce_path_scope_cmd); install_element (OSPF_NODE, &pce_domain_cmd); install_element (OSPF_NODE, &no_pce_domain_cmd); install_element (OSPF_NODE, &pce_neighbor_cmd); -- 2.39.5