summaryrefslogtreecommitdiffstats
path: root/v3po/data-impl/src/main/yang/data-impl.yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-04-11 00:18:11 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-04-12 11:02:55 +0200
commitd99066504f76a181c90832b939956f43b409c075 (patch)
tree2f863ec633c9869cf8803db44073730a3eed0323 /v3po/data-impl/src/main/yang/data-impl.yang
parentac1fa871f050c36b798047fe7e93718d4681996a (diff)
HONEYCOMB-34: Configurable OperationalDataTree dependency
Change-Id: I675a4ae11845990dfcacbe99eb0a1b799485de35 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/data-impl/src/main/yang/data-impl.yang')
-rw-r--r--v3po/data-impl/src/main/yang/data-impl.yang42
1 files changed, 41 insertions, 1 deletions
diff --git a/v3po/data-impl/src/main/yang/data-impl.yang b/v3po/data-impl/src/main/yang/data-impl.yang
index 841cdb3df..a1dfee301 100644
--- a/v3po/data-impl/src/main/yang/data-impl.yang
+++ b/v3po/data-impl/src/main/yang/data-impl.yang
@@ -37,7 +37,7 @@ module data-impl {
}
}
- container binding-normalized-node-serializer {
+ container serializer {
uses config:service-ref {
refine type {
mandatory true;
@@ -58,4 +58,44 @@ module data-impl {
}
}
+ identity honeycomb-operational-data-tree {
+ base config:module-type;
+ config:provided-service dapi:honeycomb-readable-data-tree;
+ config:java-name-prefix OperationalDataTree;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case honeycomb-operational-data-tree {
+ when "/config:modules/config:module/config:type = 'honeycomb-operational-data-tree'";
+
+ container schema-service {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity dom:schema-service;
+ }
+ }
+ }
+
+ container serializer {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity md-sal-binding:binding-normalized-node-serializer;
+ }
+ }
+ }
+
+ container reader-registry {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity tapi:honeycomb-reader-registry;
+ }
+ }
+ }
+
+ }
+ }
+
} \ No newline at end of file