summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Caracalli <ahmad.caracalli@6wind.com>2021-10-06 15:46:19 +0200
committerAhmad Caracalli <ahmad.caracalli@6wind.com>2021-10-06 15:46:19 +0200
commitb25a11034709055f76f6611bce3912ef46650529 (patch)
tree388705a90519acaa4b756dfb4e9f0ddd5f172e62
parent5b9414484cb5e10973084108b66181938eab43eb (diff)
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>
-rw-r--r--doc/user/ospf6d.rst5
-rw-r--r--ospf6d/ospf6_intra.c6
2 files changed, 7 insertions, 4 deletions
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();