diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2016-04-10 23:45:43 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-04-12 11:00:37 +0200 |
commit | ac1fa871f050c36b798047fe7e93718d4681996a (patch) | |
tree | 85a4af6a8303582a4f0cf82ec4f69b38c04d4844 /v3po/data-impl/src/main/yang/data-impl.yang | |
parent | 6dcea1de979536dbe0478e31f17191bcfae92f3c (diff) |
HONEYCOMB-34: Configurable ConfigDataTree dependency
Change-Id: I17a93835541e66835398391e2a127b25767b774a
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 | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/v3po/data-impl/src/main/yang/data-impl.yang b/v3po/data-impl/src/main/yang/data-impl.yang index 093e1725b..841cdb3df 100644 --- a/v3po/data-impl/src/main/yang/data-impl.yang +++ b/v3po/data-impl/src/main/yang/data-impl.yang @@ -1,59 +1,59 @@ -module translate-utils { +module data-impl { yang-version 1; - namespace "urn:honeycomb:params:xml:ns:yang:translate:utils"; + namespace "urn:honeycomb:params:xml:ns:yang:data:impl"; prefix "tutils"; import config { prefix config; revision-date 2013-04-05; } + import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;} + import opendaylight-md-sal-dom { prefix dom; revision-date 2013-10-28;} + import data-api { prefix dapi; revision-date 2016-04-11; } import translate-api { prefix tapi; revision-date 2016-04-06; } description - "This module contains translation layer utilities"; + "This module contains YANG module definitions + for honeycomd data layer"; - revision "2016-04-06" { + revision "2016-04-11" { description "Initial revision."; } - identity delegating-reader-registry { + identity honeycomb-config-data-tree { base config:module-type; - config:provided-service tapi:honeycomb-reader-registry; - config:java-name-prefix DelegatingReaderRegistry; + config:provided-service dapi:honeycomb-modifiable-data-tree; + config:java-name-prefix ConfigDataTree; } augment "/config:modules/config:module/config:configuration" { - case delegating-reader-registry { - when "/config:modules/config:module/config:type = 'delegating-reader-registry'"; - - list root-readers { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity tapi:honeycomb-reader; - } + case honeycomb-config-data-tree { + when "/config:modules/config:module/config:type = 'honeycomb-config-data-tree'"; + + container schema-service { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity dom:schema-service; } } + } - } - } - - identity delegating-writer-registry { - base config:module-type; - config:provided-service tapi:honeycomb-writer-registry; - config:java-name-prefix DelegatingWriterRegistry; - } + container binding-normalized-node-serializer { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity md-sal-binding:binding-normalized-node-serializer; + } + } + } - augment "/config:modules/config:module/config:configuration" { - case delegating-writer-registry { - when "/config:modules/config:module/config:type = 'delegating-writer-registry'"; - - list root-writers { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity tapi:honeycomb-writer; - } + container writer-registry { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity tapi:honeycomb-writer-registry; } } + } } } |