summaryrefslogtreecommitdiffstats
path: root/v3po/data-impl/src/main/yang
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-05-12 16:05:46 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-05-23 09:23:40 +0000
commit0fbc1362777869101c375006d6db423ec868924b (patch)
tree674fb4e2b1f92db7451b58cec228729da201bf80 /v3po/data-impl/src/main/yang
parentff272ca4bb768f9075fc3dcf9a2a2e8ef8be38fa (diff)
HONEYCOMB-61: Config persister
Add PersistingDataTree adapter for in memory config data tree Using JSON NormalizedNode writers from ODL Change-Id: Ida91fe6aa34aaeaedcd061ba1551afe49bbddbbb Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/data-impl/src/main/yang')
-rw-r--r--v3po/data-impl/src/main/yang/data-impl.yang34
1 files changed, 34 insertions, 0 deletions
diff --git a/v3po/data-impl/src/main/yang/data-impl.yang b/v3po/data-impl/src/main/yang/data-impl.yang
index 5275e6556..fa6c6f06d 100644
--- a/v3po/data-impl/src/main/yang/data-impl.yang
+++ b/v3po/data-impl/src/main/yang/data-impl.yang
@@ -44,6 +44,40 @@ module data-impl {
}
}
+ identity persisting-data-tree-adapter {
+ base config:module-type;
+ config:provided-service data-tree;
+ config:java-name-prefix PersistingDataTreeAdapter;
+ }
+
+ augment "/config:modules/config:module/config:configuration" {
+ case persisting-data-tree-adapter {
+ when "/config:modules/config:module/config:type = 'persisting-data-tree-adapter'";
+
+ container delegate {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity data-tree;
+ }
+ }
+ }
+
+ container schema-service {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity dom:schema-service;
+ }
+ }
+ }
+
+ leaf persist-file-path {
+ type string;
+ }
+ }
+ }
+
identity honeycomb-config-data-tree {
base config:module-type;
config:provided-service dapi:honeycomb-modifiable-data-tree;