]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Add 'no ...' form of some commands to cli
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Oct 2016 12:11:12 +0000 (08:11 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Oct 2016 12:11:12 +0000 (08:11 -0400)
Also add the ability to specify some or all of the no command.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospfd/ospf_ri.c

index b85287197ffd78e137ed4bcb9dd7bda9e05ab357..65659709b2a2d23f89a9743f5e452291895bf23d 100644 (file)
@@ -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);