From a97d32f1c4a29a6b79a596440ff2d025b30b6bac Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 8 Feb 2024 22:39:04 +0100 Subject: [PATCH] ospfd: add support for "no router-info [] 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" --- ospfd/ospf_ri.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c index c6aaf3f5a075..723ccf59af57 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 []", 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)