ospf6: add the ability of specifying router-id/area-id in no debug ospf6

Add the ability to specify the router-id/area-id when deleting the debug
ospf6 configuration.

The new commands are as follow:

no debug ospf6 border-routers router-id [A.B.C.D]
no debug ospf6 border-routers area-id [A.B.C.D]

Update the doc as well.

Signed-off-by: Ahmad Caracalli <ahmad.caracalli@6wind.com>
This commit is contained in:
Ahmad Caracalli 2021-10-06 15:46:19 +02:00
parent 5b9414484c
commit b25a110347
2 changed files with 7 additions and 4 deletions

View File

@ -476,9 +476,10 @@ The following debug commands are supported:
Toggle OSPFv3 ASBR debugging messages.
.. clicmd:: debug ospf6 border-routers
.. clicmd:: debug ospf6 border-routers {router-id [A.B.C.D] | area-id [A.B.C.D]}
Toggle OSPFv3 border router debugging messages.
Toggle OSPFv3 border router debugging messages. This can be specified for a
router with specific Router-ID/Area-ID.
.. clicmd:: debug ospf6 flooding

View File

@ -2479,12 +2479,13 @@ DEFUN (debug_ospf6_brouter_router,
DEFUN (no_debug_ospf6_brouter_router,
no_debug_ospf6_brouter_router_cmd,
"no debug ospf6 border-routers router-id",
"no debug ospf6 border-routers router-id [A.B.C.D]",
NO_STR
DEBUG_STR
OSPF6_STR
"Debug border router\n"
"Debug specific border router\n"
"Specify border-router's router-id\n"
)
{
OSPF6_DEBUG_BROUTER_SPECIFIC_ROUTER_OFF();
@ -2510,12 +2511,13 @@ DEFUN (debug_ospf6_brouter_area,
DEFUN (no_debug_ospf6_brouter_area,
no_debug_ospf6_brouter_area_cmd,
"no debug ospf6 border-routers area-id",
"no debug ospf6 border-routers area-id [A.B.C.D]",
NO_STR
DEBUG_STR
OSPF6_STR
"Debug border router\n"
"Debug border routers in specific Area\n"
"Specify Area-ID\n"
)
{
OSPF6_DEBUG_BROUTER_SPECIFIC_AREA_OFF();