summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_top.h
diff options
context:
space:
mode:
authorrgirada <rgirada@vmware.com>2021-06-25 11:49:47 +0200
committerrgirada <rgirada@vmware.com>2021-08-10 11:57:23 +0200
commit91c169f7d78e71417431c4297da008145da98d9d (patch)
tree1cc4078844551e7e583407655d11d78132ce868b /ospf6d/ospf6_top.h
parentospf6d: documentation for ospf6 GR helper functionality (diff)
downloadfrr-91c169f7d78e71417431c4297da008145da98d9d.tar.xz
frr-91c169f7d78e71417431c4297da008145da98d9d.zip
ospf6d: Datastructure modification for GR helper functionality.
Description: Adding GR helper specific datastructures. Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_top.h')
-rw-r--r--ospf6d/ospf6_top.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/ospf6d/ospf6_top.h b/ospf6d/ospf6_top.h
index fe02cd3f8..58ecf0849 100644
--- a/ospf6d/ospf6_top.h
+++ b/ospf6d/ospf6_top.h
@@ -60,6 +60,43 @@ struct ospf6_redist {
#define ROUTEMAP(R) (R->route_map.map)
};
+struct ospf6_gr_helper {
+ /* Gracefull restart Helper supported configs*/
+ /* Supported grace interval*/
+ uint32_t supported_grace_time;
+
+ /* Helper support
+ * Supported : True
+ * Not Supported : False.
+ */
+ bool is_helper_supported;
+
+ /* Support for strict LSA check.
+ * if it is set,Helper aborted
+ * upon a TOPO change.
+ */
+ bool strict_lsa_check;
+
+ /* Support as HELPER only for
+ * planned restarts.
+ */
+ bool only_planned_restart;
+
+ /* This list contains the advertisement
+ * routerids for which Helper support is
+ * enabled.
+ */
+ struct hash *enable_rtr_list;
+
+ /* HELPER for number of active
+ * RESTARTERs.
+ */
+ int active_restarter_cnt;
+
+ /* last HELPER exit reason */
+ uint32_t last_exit_reason;
+};
+
/* OSPFv3 top level data structure */
struct ospf6 {
/* The relevant vrf_id */
@@ -154,6 +191,10 @@ struct ospf6 {
* to support ECMP.
*/
uint16_t max_multipath;
+
+ /*ospf6 Graceful restart helper info */
+ struct ospf6_gr_helper ospf6_helper_cfg;
+
/* Count of NSSA areas */
uint8_t anyNSSA;
struct thread *t_abr_task; /* ABR task timer. */