Upgrade ietf-{inet,yang}-types to 2013-07-15
[vpnservice.git] / itm / itm-api / src / main / yang / itm.yang
index 8785d0a6ca3c66e176849976264718f1ed3c329b..15f8ab22569cb7f9309ee2154bcfdade0959c8c6 100644 (file)
@@ -12,7 +12,7 @@ module itm {
     }
     import ietf-inet-types {
         prefix inet;
-        revision-date "2010-09-24";
+        revision-date "2013-07-15";
     }
     
     import odl-interface {
@@ -29,6 +29,7 @@ module itm {
 
     container transport-zones {
       list transport-zone {
+      ordered-by user;
         key zone-name;
         leaf zone-name {
             type string;
@@ -48,7 +49,9 @@ module itm {
                 type inet:ip-address;
             }
             leaf vlan-id {
-                type uint16;
+                type uint16{
+                range "0..4094";
+            }
             }
             list vteps {
                 key "dpn-id portname";
@@ -62,6 +65,19 @@ module itm {
                     type inet:ip-address;
                 }
             }
+             list device-vteps {
+              key "node-id ip-address";
+                     leaf topology-id {
+                        type string;
+                     }
+                     leaf node-id {
+                       type string;
+                     }
+                     leaf ip-address {
+                     type inet:ip-address;
+                   }
+           }
+
         }
       }
     }
@@ -69,4 +85,4 @@ module itm {
         base "config:service-type";
         config:java-class "org.opendaylight.vpnservice.itm.api.IITMProvider";
     }
-}
\ No newline at end of file
+}