From 0fc3e113231829c3412f5009be2b4c790b444bd3 Mon Sep 17 00:00:00 2001 From: rgirada Date: Thu, 1 Jul 2021 07:09:38 -0700 Subject: ospf6d: GR helper configurations Description: Adding the following cli commands to enable/disable GR helper functionality. 1. [no] graceful-restart helper-only [A.B.C.D] 2. [no] graceful-restart helper lsa-check-disable 3. [no] graceful-restart helper planned-only 4. [no] graceful-restart helper supported-grace-time (10-1800) show commands: show ipv6 ospf6 graceful-restart helper [detail] [json] Signed-off-by: Rajesh Girada --- ospf6d/ospf6_flood.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ospf6d/ospf6_flood.c') diff --git a/ospf6d/ospf6_flood.c b/ospf6d/ospf6_flood.c index 458b81f2ea..87c43c4657 100644 --- a/ospf6d/ospf6_flood.c +++ b/ospf6d/ospf6_flood.c @@ -1026,7 +1026,7 @@ void ospf6_receive_lsa(struct ospf6_neighbor *from, if (OSPF6_LSA_IS_MAXAGE(new)) { - if (IS_DEBUG_OSPF6_GR_HELPER) + if (IS_DEBUG_OSPF6_GR) zlog_debug( "%s, Received a maxage GraceLSA from router %pI4", __func__, @@ -1035,7 +1035,7 @@ void ospf6_receive_lsa(struct ospf6_neighbor *from, ospf6_process_maxage_grace_lsa( ospf6, new, from); } else { - if (IS_DEBUG_OSPF6_GR_HELPER) + if (IS_DEBUG_OSPF6_GR) zlog_debug( "%s, GraceLSA doesn't exist in lsdb, so discarding GraceLSA", __func__); @@ -1043,7 +1043,7 @@ void ospf6_receive_lsa(struct ospf6_neighbor *from, } } else { - if (IS_DEBUG_OSPF6_GR_HELPER) + if (IS_DEBUG_OSPF6_GR) zlog_debug( "%s, Received a GraceLSA from router %pI4", __func__, @@ -1051,7 +1051,7 @@ void ospf6_receive_lsa(struct ospf6_neighbor *from, if (ospf6_process_grace_lsa(ospf6, new, from) == OSPF6_GR_NOT_HELPER) { - if (IS_DEBUG_OSPF6_GR_HELPER) + if (IS_DEBUG_OSPF6_GR) zlog_debug( "%s, Not moving to HELPER role, So dicarding GraceLSA", __func__); -- cgit v1.2.3