add YANG file for dhcp on unimgr side
[unimgr.git] / legato-api / src / main / yang / unimgr-dhcp.yang
diff --git a/legato-api/src/main/yang/unimgr-dhcp.yang b/legato-api/src/main/yang/unimgr-dhcp.yang
new file mode 100644 (file)
index 0000000..0484944
--- /dev/null
@@ -0,0 +1,26 @@
+module unimgr-dhcp {
+    namespace "urn:opendaylight:unimgr:unimgr-dhcp";
+    prefix "unimgr-dhcp";
+    
+    import dhcp_allocation_pool {
+        prefix dhcp;
+    }
+
+    revision "2016-12-14" {
+        description "It provides required datastore containers to handle DHCP requests
+            coming from access or external tunnel ports";
+    }
+
+    container unimgr-dhcp {
+        config true;
+        description "contains non-neutron DHCP allocation";
+        list network {
+            key "network-id";
+            leaf network-id {
+                description "unimgr network id";
+                type string;
+            }
+            uses dhcp:dhcp_allocations;
+        }
+    }
+}