diff options
author | 2016-04-11 00:18:11 +0200 | |
---|---|---|
committer | 2016-04-12 11:02:55 +0200 | |
commit | 077fec893ed63f17bb4c9b2952d27075fa50f737 (patch) | |
tree | 325d4981dc3836f04d20d48b1ec940b94fa29d3d /v3po/data-impl/src/main/yang/data-impl.yang | |
parent | 8764f31fa74942d963dc85dd53227e980ceadf44 (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.yang | 42 |
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 |