diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-05-12 16:05:46 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-05-23 09:23:40 +0000 |
commit | 1cafe726b137109c96e03b80335b6a70bf7f63e2 (patch) | |
tree | 5ba4b0be02e1d164fe9262602f17605de2996fe0 /v3po/impl/src/main | |
parent | 4f721caed71f10c9db296f6aed8ed1b68ad3bf5e (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/impl/src/main')
-rw-r--r-- | v3po/impl/src/main/config/default-config.xml | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/v3po/impl/src/main/config/default-config.xml b/v3po/impl/src/main/config/default-config.xml index f679521d1..ca09d6e0b 100644 --- a/v3po/impl/src/main/config/default-config.xml +++ b/v3po/impl/src/main/config/default-config.xml @@ -47,15 +47,37 @@ </schema-service> </module> + <!-- DataTree adapter with persistence for config DT --> + <module> + <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:persisting-data-tree-adapter</type> + <name>inmemory-persisted-config-data-tree</name> + <delegate> + <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:data-tree</type> + <name>inmemory-config-data-tree</name> + </delegate> + <schema-service> + <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type> + <name>yang-schema-service</name> + </schema-service> + <persist-file-path>etc/opendaylight/honeycomb/config.json</persist-file-path> + </module> + <!-- HC config data tree --> <module> <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:honeycomb-config-data-tree</type> <name>config-data-tree</name> + <!-- Without persistence --> + <!--<data-tree>--> + <!--<type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:data-tree</type>--> + <!--<name>inmemory-config-data-tree</name>--> + <!--</data-tree>--> + <!-- With persistence --> <data-tree> <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:data-tree</type> - <name>inmemory-config-data-tree</name> + <name>inmemory-persisted-config-data-tree</name> </data-tree> + <serializer> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-dom-mapping-service</type> <name>runtime-mapping-singleton</name> @@ -188,10 +210,19 @@ <module> <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:honeycomb-config-data-tree</type> <name>cfg-init-config-data-tree</name> + + <!--FIXME do we need/want persistence here ? Do initializers only merge the data ? --> + <!-- Without persistence --> + <!--<data-tree>--> + <!--<type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:data-tree</type>--> + <!--<name>inmemory-config-data-tree</name>--> + <!--</data-tree>--> + <!-- With persistence --> <data-tree> <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:impl">prefix:data-tree</type> - <name>inmemory-config-data-tree</name> + <name>inmemory-persisted-config-data-tree</name> </data-tree> + <serializer> <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-dom-mapping-service</type> <name>runtime-mapping-singleton</name> @@ -310,6 +341,11 @@ <provider>/modules/module[type='inmemory-config-data-tree'][name='inmemory-config-data-tree'] </provider> </instance> + <instance> + <name>inmemory-persisted-config-data-tree</name> + <provider>/modules/module[type='persisting-data-tree-adapter'][name='inmemory-persisted-config-data-tree'] + </provider> + </instance> </service> <service> |