From 5f10c13fc3bff497f6556f0538b08060e4f28105 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Fri, 13 May 2016 11:24:15 +0200 Subject: HONEYCOMB-61: Make InmemoryDataTree module type configurable Change-Id: Ie73eac8960a76ebcc578d3b44c50492f29908e24 Signed-off-by: Maros Marsalek --- v3po/data-impl/src/main/yang/data-impl.yang | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'v3po/data-impl/src/main/yang') 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; + } } } -- cgit 1.2.3-korg