summaryrefslogtreecommitdiffstats
path: root/v3po/data-impl/src/main/yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-04-10 23:45:43 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-04-12 11:00:37 +0200
commit8764f31fa74942d963dc85dd53227e980ceadf44 (patch)
treecf4a05617adbe8ef445e6220d40f4b65b6fa6eec /v3po/data-impl/src/main/yang
parentc806dc87185ee3a994685561ea024cad45210036 (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')
-rw-r--r--v3po/data-impl/src/main/yang/data-impl.yang68
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;
}
}
+ }
}
}