summaryrefslogtreecommitdiffstats
path: root/infra/data-api/src/main/yang
diff options
context:
space:
mode:
Diffstat (limited to 'infra/data-api/src/main/yang')
-rw-r--r--infra/data-api/src/main/yang/data-api.yang38
1 files changed, 38 insertions, 0 deletions
diff --git a/infra/data-api/src/main/yang/data-api.yang b/infra/data-api/src/main/yang/data-api.yang
new file mode 100644
index 000000000..693a73acd
--- /dev/null
+++ b/infra/data-api/src/main/yang/data-api.yang
@@ -0,0 +1,38 @@
+module data-api {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:data:api";
+ prefix "dapi";
+
+ import config { prefix config; revision-date 2013-04-05; }
+
+ description
+ "This module contains the base YANG data tree definitions
+ for data store modeling";
+
+ revision "2016-04-11" {
+ description
+ "Initial revision.";
+ }
+
+ identity data-tree {
+ base "config:service-type";
+ config:java-class org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree;
+ }
+
+ identity honeycomb-readable-data-tree {
+ base "config:service-type";
+ config:java-class io.fd.honeycomb.v3po.data.ReadableDataManager;
+ }
+
+ identity honeycomb-modifiable-data-tree {
+ base "config:service-type";
+ config:java-class io.fd.honeycomb.v3po.data.ModifiableDataManager;
+ }
+
+ typedef datatree-type {
+ type enumeration {
+ enum config;
+ enum oper;
+ }
+ }
+} \ No newline at end of file