diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-05-13 11:24:15 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-05-23 09:23:53 +0000 |
commit | 5f10c13fc3bff497f6556f0538b08060e4f28105 (patch) | |
tree | 6032a7549f90f75d72ef1ea3f1ddaaa469cb82cb /v3po/data-impl/src/main/yang | |
parent | 0fbc1362777869101c375006d6db423ec868924b (diff) |
HONEYCOMB-61: Make InmemoryDataTree module type configurable
Change-Id: Ie73eac8960a76ebcc578d3b44c50492f29908e24
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/data-impl/src/main/yang')
-rw-r--r-- | v3po/data-impl/src/main/yang/data-impl.yang | 19 |
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; + } } } |