Skip to content

Commit

Permalink
ospfd: add support for "no router-info [<area|as>] command"
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
c-po committed Feb 8, 2024
1 parent 1bc2fa3 commit a97d32f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ospfd/ospf_ri.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a97d32f

Please sign in to comment.