summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ri.c
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-08 22:39:04 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-08 22:40:54 +0100
commite744db5098dcdca1bce32169aaa0703a21ab6b0c (patch)
tree00b73d2d4810c01ba3c446918517e2233156384d /ospfd/ospf_ri.c
parentMerge pull request #15305 from louis-6wind/label-dead-code (diff)
downloadfrr-e744db5098dcdca1bce32169aaa0703a21ab6b0c.tar.xz
frr-e744db5098dcdca1bce32169aaa0703a21ab6b0c.zip
ospfd: add support for "no router-info [<area|as>] command"
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>
Diffstat (limited to 'ospfd/ospf_ri.c')
-rw-r--r--ospfd/ospf_ri.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c
index c6aaf3f5a..723ccf59a 100644
--- a/ospfd/ospf_ri.c
+++ b/ospfd/ospf_ri.c
@@ -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)