]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Enable the feature using configure.ac
authorAbhinay Ramesh <rabhinay@vmware.com>
Tue, 8 Jun 2021 12:40:21 +0000 (12:40 +0000)
committerAbhinay Ramesh <rabhinay@vmware.com>
Wed, 9 Feb 2022 01:57:08 +0000 (01:57 +0000)
Problem Statement:
=================
The feature is not enabled, needs to be enabled by doing required
initialization.

RCA:
====
Changes to support the feature is present, but the feature macro
needs to be enabled.

Fix:
====
This commit has changes to enable the code.

Risk:
=====
Medium

Need to ensure all existing ospf6 related topotests pass. to ensure
packet processing is not impacted.

Tests Executed:
===============
Have tested the functionality with enabling openssl and also disabling
openssl.

Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
ospf6d/ospf6d.c
ospf6d/subdir.am

index cc5a0f7870a8718f57408114e8c4630e43569b9e..a16f4f73eb6ae4a25e0b6236aebb93baa57b3234 100644 (file)
@@ -48,6 +48,7 @@
 #include "ospf6_gr.h"
 #include "lib/json.h"
 #include "ospf6_nssa.h"
+#include "ospf6_auth_trailer.h"
 
 DEFINE_MGROUP(OSPF6D, "ospf6d");
 
@@ -98,6 +99,7 @@ static int config_write_ospf6_debug(struct vty *vty)
        config_write_ospf6_debug_flood(vty);
        config_write_ospf6_debug_nssa(vty);
        config_write_ospf6_debug_gr_helper(vty);
+       config_write_ospf6_debug_auth(vty);
 
        return 0;
 }
@@ -1458,4 +1460,7 @@ void ospf6_init(struct thread_master *master)
                VIEW_NODE,
                &show_ipv6_ospf6_database_type_self_originated_linkstate_id_cmd);
        install_element(VIEW_NODE, &show_ipv6_ospf6_database_aggr_router_cmd);
+       install_element_ospf6_debug_auth();
+       ospf6_interface_auth_trailer_cmd_init();
+       install_element_ospf6_clear_intf_auth();
 }
index 34aabc205bbd3ad4c1b475482770b721157d3fd9..cf863ff5234908ab01758bb803a91eae4079ee72 100644 (file)
@@ -24,6 +24,7 @@ vtysh_scan += \
        ospf6d/ospf6_top.c \
        ospf6d/ospf6_zebra.c \
        ospf6d/ospf6d.c \
+       ospf6d/ospf6_auth_trailer.c \
        # end
 vtysh_daemons += ospf6d
 if SNMP
@@ -56,6 +57,7 @@ ospf6d_libospf6_a_SOURCES = \
        ospf6d/ospf6_top.c \
        ospf6d/ospf6_zebra.c \
        ospf6d/ospf6d.c \
+       ospf6d/ospf6_auth_trailer.c \
        # end
 
 noinst_HEADERS += \
@@ -80,6 +82,7 @@ noinst_HEADERS += \
        ospf6d/ospf6_top.h \
        ospf6d/ospf6_zebra.h \
        ospf6d/ospf6d.h \
+       ospf6d/ospf6_auth_trailer.h \
        # end
 
 ospf6d_ospf6d_LDADD = ospf6d/libospf6.a lib/libfrr.la $(LIBCAP)