]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: add support for "no router-info [<area|as>] command" 15336/head
authorChristian Breunig <christian@breunig.cc>
Thu, 8 Feb 2024 21:39:04 +0000 (22:39 +0100)
committerChristian Breunig <christian@breunig.cc>
Thu, 8 Feb 2024 21:40:54 +0000 (22:40 +0100)
frr-reload.py will walk through all config contexts and prepend no to the CLI
command. This requires that the vtysh shell code accepts a full command.

To Reproduce

vtysh -c "conf t" -c "router ospf" -c "router-info area"
vtysh -c "conf t" -c "router ospf" -c "no router-info area"
% Unknown command: no router-info area
vtysh -c "conf t" -c "router ospf" -c "no router-info"

Signed-off-by: Christian Breunig <christian@breunig.cc>
ospfd/ospf_ri.c

index c6aaf3f5a0751b5fd0e042705b2d3388170ec1a7..723ccf59af574dd679b7cc6e8016fe5001aa3938 100644 (file)
@@ -1723,9 +1723,11 @@ DEFUN (router_info,
 
 DEFUN (no_router_info,
        no_router_info_cmd,
-       "no router-info",
+       "no router-info [<area|as>]",
        NO_STR
-       "Disable the Router Information functionality\n")
+       "Disable the Router Information functionality\n"
+       "Disable the Router Information functionality with AS flooding scope\n"
+       "Disable the Router Information functionality with Area flooding scope\n")
 {
 
        if (!OspfRI.enabled)