Bug 3292: Invalid Range exception in setDpnId
[vpnservice.git] / nexthopmgr / nexthopmgr-api / src / main / yang / l3nexthop.yang
index 3090e70211b1447c2c58349cb7bc68f87fc2c11b..68083d6b8d854f3cfd7e4b502a620ba807fdb0b7 100644 (file)
@@ -1,56 +1,56 @@
 
 
 module l3nexthop {
-       namespace "urn:opendaylight:vpnservice:l3nexthop";
-       prefix l3nexthop;
-       
-       revision "2015-04-09" {
-               description "L3 NextHop module";
-       }
+    namespace "urn:opendaylight:vpnservice:l3nexthop";
+    prefix l3nexthop;
 
-       container l3nexthop {
-               config false;
-               list vpnNexthops{
-                       key "vpnId";
-                       leaf vpnId {type uint32;}
-                       list vpnNexthop{
-                               key  "IpAddress";
-                               leaf IpAddress {type string;}
-                               leaf egressPointer {type uint32;}
-                       }
-               }
-               list tunnelNexthops{
-                       key "dpnId";
-                       leaf dpnId {type uint32;}
-                       list tunnelNexthop{
-                               key  "IpAddress";
-                               leaf IpAddress {type string;}
-                               leaf egressPointer {type uint32;}
-                       }
-               }
-       }
-       
-       rpc getEgressPointer {
-               description "returns egress pointer, an OF Group Id";
-               input { 
-                       leaf dpnId {type uint32;}
-                       leaf vpnId { type uint32;}  /* optional */
-                       leaf ipPrefix {type string;}
-                       leaf nexthopIp {type string;}
-               }
-               output { 
-                       leaf egressPointer {type uint32;} 
-                       leaf localDestination {type boolean;}
-               }
-       }
+    revision "2015-04-09" {
+        description "L3 NextHop module";
+    }
 
-       rpc removeLocalNextHop {
-               description "remove a local next hop";
-               input {
-                       leaf dpnId {type uint32;}
-                       leaf vpnId { type uint32;}  /* optional */
-                       leaf ipPrefix {type string;}
-                       leaf nexthopIp {type string;}
-               }
-       }
+    container l3nexthop {
+        config false;
+        list vpnNexthops{
+            key "vpnId";
+            leaf vpnId {type uint32;}
+            list vpnNexthop{
+                key  "IpAddress";
+                leaf IpAddress {type string;}
+                leaf egressPointer {type uint32;}
+            }
+        }
+        list tunnelNexthops{
+            key "dpnId";
+            leaf dpnId {type uint64;}
+            list tunnelNexthop{
+                key  "IpAddress";
+                leaf IpAddress {type string;}
+                leaf egressPointer {type uint32;}
+            }
+        }
+    }
+
+    rpc getEgressPointer {
+        description "returns egress pointer, an OF Group Id";
+        input {
+            leaf dpnId {type uint64;}
+            leaf vpnId { type uint32;}  /* optional */
+            leaf ipPrefix {type string;}
+            leaf nexthopIp {type string;}
+        }
+        output {
+            leaf egressPointer {type uint32;}
+            leaf localDestination {type boolean;}
+        }
+    }
+
+    rpc removeLocalNextHop {
+        description "remove a local next hop";
+        input {
+            leaf dpnId {type uint64;}
+            leaf vpnId { type uint32;}  /* optional */
+            leaf ipPrefix {type string;}
+            leaf nexthopIp {type string;}
+        }
+    }
 }
\ No newline at end of file