summaryrefslogtreecommitdiffstats
path: root/v3po/data-impl/src/main/yang/data-impl.yang
diff options
context:
space:
mode:
Diffstat (limited to 'v3po/data-impl/src/main/yang/data-impl.yang')
-rw-r--r--v3po/data-impl/src/main/yang/data-impl.yang19
1 files changed, 15 insertions, 4 deletions
diff --git a/v3po/data-impl/src/main/yang/data-impl.yang b/v3po/data-impl/src/main/yang/data-impl.yang
index fa6c6f06d..da1c02316 100644
--- a/v3po/data-impl/src/main/yang/data-impl.yang
+++ b/v3po/data-impl/src/main/yang/data-impl.yang
@@ -23,15 +23,22 @@ module data-impl {
config:java-class org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree;
}
- identity inmemory-config-data-tree {
+ identity inmemory-data-tree {
base config:module-type;
config:provided-service data-tree;
- config:java-name-prefix InMemoryConfigDataTree;
+ config:java-name-prefix InMemoryDataTree;
+ }
+
+ typedef datatree-type {
+ type enumeration {
+ enum config;
+ enum oper;
+ }
}
augment "/config:modules/config:module/config:configuration" {
- case inmemory-config-data-tree {
- when "/config:modules/config:module/config:type = 'inmemory-config-data-tree'";
+ case inmemory-data-tree {
+ when "/config:modules/config:module/config:type = 'inmemory-data-tree'";
container schema-service {
uses config:service-ref {
@@ -41,6 +48,10 @@ module data-impl {
}
}
}
+
+ leaf type {
+ type datatree-type;
+ }
}
}