Remove illegal characters from yangs
[netvirt.git] / vpnservice / vpnmanager / vpnmanager-api / src / main / yang / l3vpn.yang
index 9e08e45bb65570d9b87ae3bcfbf33012997c2e92..c55cf0c60f97bd3f63684cbcd73a57128b8b7737 100644 (file)
@@ -194,7 +194,7 @@ module l3vpn {
       "A set of configuration parameters that is applicable to both IPv4 and
        IPv6 address family for a VPN instance .";
 
-    leaf route-distinguisher {
+    leaf-list route-distinguisher {
       description
         "The route-distinguisher command configures a route distinguisher (RD)
          for the IPv4 or IPv6 address family of a VPN instance.
@@ -736,7 +736,7 @@ module l3vpn {
         type enumeration {
            enum l3 {
               value "0";
-              description L3VPN";
+              description "L3VPN";
            }
            enum l2 {
               value "1";
@@ -802,9 +802,32 @@ module l3vpn {
           path "/if:interfaces/if:interface/if:name";
         }
       }
-      leaf vpn-instance-name {
-        type string {
-          length "1..40";
+      list vpn-instance-names {
+        key "vpn-name";
+        leaf vpn-name {
+            type string {
+                length "1..40";
+            }
+        }
+        leaf associated-subnet-type {
+          type enumeration {
+             enum V4Subnet {
+                value "0";
+                description "V4 Router Internal VPN";
+             }
+             enum V6Subnet {
+                value "1";
+                description "V6 Router Internal VPN";
+             }
+             enum V6InternetVPN {
+                value "2";
+                description "BGPVPN Internet";
+             }
+             enum V4AndV6Subnets {
+                value "3";
+                description "BGPVPN dual stack or V6/V4 Router or undefined";
+             }
+          }
         }
       }
       leaf dpn-id {
@@ -813,7 +836,7 @@ module l3vpn {
       leaf scheduled-for-remove {
         type boolean;
       }
-      leaf is-router-interface {
+      leaf router-interface {
           type boolean;
       }
     }