]> git.puffer.fish Git - mirror/frr.git/commitdiff
yang: rework PIM MSDP mesh group
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 20 Apr 2021 17:54:01 +0000 (14:54 -0300)
committerRafael Zalamena <rzalamena@gmail.com>
Wed, 9 Jun 2021 15:32:24 +0000 (12:32 -0300)
Allow PIM MSDP configuration to support multiple MSDP mesh groups per
PIM instance.

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

index 70adb37b26531876c6e843994091745bf2593838..4c4819ac25ac54689d08495d07d404dd73103553 100644 (file)
@@ -174,26 +174,36 @@ module frr-pim {
         "Enable ssmpingd operation.";
     }
 
-    container msdp-mesh-group {
-      presence
-        "Configure MSDP mesh-group.";
+    list msdp-mesh-groups {
+      key "name";
+      description
+        "RFC 3618 Section 10.2. MSDP mesh-group semantics
 
-      leaf mesh-group-name {
-        type string;
+         Groups multiple MSDP peers to reduce SA flooding typically used
+         in intra-domain settings.";
+
+      leaf name {
+        type string {
+          length 1..64;
+        }
         description
-          "MSDP mesh group name.";
+          "The mesh group name.";
       }
 
-      leaf-list member-ip {
+      leaf source {
         type inet:ip-address;
         description
-          "Peer ip address.";
+          "Source IP address for the TCP connections.";
       }
 
-      leaf source-ip {
-        type inet:ip-address;
-        description
-          "Source ip address for the TCP connection.";
+      list members {
+        key "address";
+
+        leaf address {
+          type inet:ip-address;
+          description
+            "Peer member IP address.";
+        }
       }
     }