]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: support keychain for ospf6 authentication
authorAbhinay Ramesh <rabhinay@vmware.com>
Tue, 11 May 2021 12:50:05 +0000 (12:50 +0000)
committerAbhinay Ramesh <rabhinay@vmware.com>
Wed, 9 Feb 2022 01:56:38 +0000 (01:56 +0000)
Problem Statement:
==================
As of now there is no support for ospf6 authentication.
To support ospf6 authentication need to have keychain support for
managing the auth key. 
 
RCA:
====
New support
 
Fix:
====
Enabling keychain for ospf6 authentication feature.
 
Risk:
=====
Low risk
 
Tests Executed:
===============
Have verified the support for ospf6 auth trailer feature.

Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
ospf6d/ospf6_main.c
vtysh/extract.pl.in
vtysh/vtysh.h

index 165a764c382dbc4e0ce3d1592040afa22a6c18eb..120f307adc73c82d4659df148d1e2874251af472 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zebra.h>
 #include <lib/version.h>
+#include <lib/keychain.h>
 #include <stdlib.h>
 
 #include "getopt.h"
@@ -223,6 +224,7 @@ int main(int argc, char *argv[], char *envp[])
        /* thread master */
        master = om6->master;
 
+       keychain_init();
        ospf6_vrf_init();
        access_list_init();
        prefix_list_init();
index 334bd7affad83f297ce92f1dec9d29ac19c9e210..c2b4e779dec12f3ecc9bc4b94c3a521e32dd72d8 100755 (executable)
@@ -91,7 +91,7 @@ sub scan_file {
 
         # $protocol is VTYSH_PROTO format for redirection of user input
         if ($file =~ /lib\/keychain\.c$/) {
-            $protocol = "VTYSH_RIPD|VTYSH_EIGRPD";
+            $protocol = "VTYSH_RIPD|VTYSH_EIGRPD|VTYSH_OSPF6D";
         }
         elsif ($file =~ /lib\/routemap\.c$/ || $file =~ /lib\/routemap_cli\.c$/) {
             $protocol = "VTYSH_RMAP";
index e56d482da2dda8d00872c0fe5e88bf72337f63c8..66af248354c64ca0dfe3ec19a5bbfad140dae1d0 100644 (file)
@@ -57,7 +57,7 @@ DECLARE_MGROUP(MVTYSH);
 #define VTYSH_RMAP       VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_ISISD|VTYSH_PIMD|VTYSH_EIGRPD|VTYSH_FABRICD
 #define VTYSH_INTERFACE          VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD|VTYSH_EIGRPD|VTYSH_BABELD|VTYSH_PBRD|VTYSH_FABRICD|VTYSH_VRRPD
 #define VTYSH_VRF        VTYSH_INTERFACE|VTYSH_STATICD
-#define VTYSH_KEYS        VTYSH_RIPD|VTYSH_EIGRPD
+#define VTYSH_KEYS VTYSH_RIPD | VTYSH_EIGRPD | VTYSH_OSPF6D
 /* Daemons who can process nexthop-group configs */
 #define VTYSH_NH_GROUP    VTYSH_PBRD|VTYSH_SHARPD
 #define VTYSH_SR          VTYSH_ZEBRA|VTYSH_PATHD