]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: add support for "no router-info [<area|as>] command"
authorChristian Breunig <christian@breunig.cc>
Thu, 8 Feb 2024 21:39:04 +0000 (22:39 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 9 Feb 2024 11:48:34 +0000 (11:48 +0000)
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>
(cherry picked from commit e744db5098dcdca1bce32169aaa0703a21ab6b0c)

ospfd/ospf_ri.c

index 725443f490786a71b1a7898b0b6f269853f4a8ec..80e7f59312a83e3b84d5f67db47109f6d42104ea 100644 (file)
@@ -1722,9 +1722,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)