From: Ahmad Caracalli Date: Wed, 6 Oct 2021 13:46:19 +0000 (+0200) Subject: ospf6: add the ability of specifying router-id/area-id in no debug ospf6 X-Git-Tag: base_8.2~363^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b25a11034709055f76f6611bce3912ef46650529;p=mirror%2Ffrr.git 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 --- diff --git a/doc/user/ospf6d.rst b/doc/user/ospf6d.rst index d823c5d5b5..093c5382cf 100644 --- a/doc/user/ospf6d.rst +++ b/doc/user/ospf6d.rst @@ -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 diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c index 277af4b1c5..988f37bd2e 100644 --- a/ospf6d/ospf6_intra.c +++ b/ospf6d/ospf6_intra.c @@ -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();