Bug 7669: Add multi-provider network support to NetVirt for L2 Gateway.
[netvirt.git] / vpnservice / elanmanager / elanmanager-api / src / main / yang / elan.yang
index 6fa6ca567ea7e41a82e4ea10adb4a0cfe572f8e2..f1c9400648fe19ad57ca05809fe665c394589b23 100644 (file)
@@ -57,7 +57,7 @@ module elan {
             }
             leaf physical-network-name {
                 type string;
-                description "Optional. The name of the phyiscal network attached to the ELAN.";
+                description "Optional. The name of the physical network attached to the ELAN.";
             }
             leaf mac-timeout {
                 type uint32 {
@@ -75,6 +75,32 @@ module elan {
                     length "1..254";
                 }
             }
+            list elan-segments {
+                description "List of provider network(s) associated with this ELAN.";
+                key segmentation-index;
+                leaf segmentation-index {
+                    description "A hidden counter to act as a key, because segmentation id
+                    is not required.";
+                    type uint32;
+                }
+                leaf physical-network-name {
+                    description "Optional. The name of the physical network attached to the ELAN.";
+                    type string;
+                }
+                leaf segment-type {
+                    description "Optional. Network segment type. It's mandatory when there are external
+                                devices participating in the ELAN";
+                    type identityref {
+                        base segment-type-base;
+                    }
+                }
+                leaf segmentation-id {
+                    description "Optional. Isolated segment on the physical network. For example,
+                                if segment-type is vlan, this ID is a vlan identifier. If segment-type
+                                is vxlan, this ID is a vni";
+                    type uint32;
+                }
+            }
         }
     }