restructure and base modules for different features
[vpnservice.git] / nexthopmgr / nexthopmgr-api / src / main / yang / l3nexthop.yang
diff --git a/nexthopmgr/nexthopmgr-api/src/main/yang/l3nexthop.yang b/nexthopmgr/nexthopmgr-api/src/main/yang/l3nexthop.yang
new file mode 100644 (file)
index 0000000..cc86285
--- /dev/null
@@ -0,0 +1,40 @@
+
+
+module l3nexthop {
+       namespace "urn:opendaylight:vpnservice:l3nexthop";
+       prefix l3nexthop;
+       
+       revision "2015-03-30" {
+               description "L3 NextHop module";
+       }
+
+       container l3nexthop {
+               list vpnNexthops{
+                       key "vpnId";
+                       leaf vpnId {type uint32;}
+                       list vpnNexthop{
+                               key  "IpAddress";
+                               leaf IpAddress {type string;}
+                               leaf dpnId {type uint32;}
+                               leaf egressPointer {type uint32;}
+                       }
+               }
+               list genNexthops{
+                       key  "IpAddress";
+                       leaf IpAddress {type string;}
+                       leaf dpnId {type uint32;}
+                       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 ipAddress{type string;}
+               }
+               output { 
+                       leaf egressPointer {type uint32;} 
+               }
+       }
+}
\ No newline at end of file