]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: MSDP authentication support
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 6 Dec 2022 12:58:22 +0000 (09:58 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 29 Jul 2024 14:35:26 +0000 (11:35 -0300)
Specify MSDP authentication specification model.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
yang/frr-pim.yang

index cc8d6445aa6b2e2f53b85294b60dc9b66df85cbc..6a6c52185ddb1072bae19ad80a1e3d9a82559195 100644 (file)
@@ -122,6 +122,37 @@ module frr-pim {
     }
   }
 
+  grouping msdp-authentication {
+    description
+      "MSDP authentication options.";
+
+    leaf authentication-type {
+      type enumeration {
+        enum None {
+          value 0;
+          description
+            "No authentication.";
+        }
+        enum MD5 {
+          value 1;
+          description
+            "Use MD5 digest.";
+        }
+      }
+      default None;
+      description
+        "Authentication method.";
+    }
+
+    leaf authentication-key {
+      when "../authentication-type = 'MD5'";
+      mandatory true;
+      type string;
+      description
+        "Authentication key.";
+    }
+  }
+
   grouping global-pim-config-attributes {
     description
       "A grouping defining per address family pim global attributes";
@@ -283,6 +314,8 @@ module frr-pim {
         description
           "Access list name used to filter the outgoing SAs exchanged.";
       }
+
+      uses msdp-authentication;
     }
 
     container mlag {