summaryrefslogtreecommitdiffstats
path: root/v3po/impl/src/main/config
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-05-18 09:36:32 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-05-24 08:33:15 +0000
commitd421438681e97ef7213a5cb925c49755cd9fb4b6 (patch)
treeeec68eb4a7f5ca200270506a775ac7bc3b31e627 /v3po/impl/src/main/config
parent3f3dfefae447342188804d2f628689e34350945e (diff)
HONEYCOMB-61: Provide context data in OPERATIONAL reads
+ Uncomment disabled reader for netconf monitoring Change-Id: I8de1507d1999ff7fc64aa87dc9a1c0d2af454b0d Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/impl/src/main/config')
-rw-r--r--v3po/impl/src/main/config/context-datatree-config.xml28
-rw-r--r--v3po/impl/src/main/config/netconf-north-config.xml17
2 files changed, 35 insertions, 10 deletions
diff --git a/v3po/impl/src/main/config/context-datatree-config.xml b/v3po/impl/src/main/config/context-datatree-config.xml
index 13da9ec65..a77813daf 100644
--- a/v3po/impl/src/main/config/context-datatree-config.xml
+++ b/v3po/impl/src/main/config/context-datatree-config.xml
@@ -89,11 +89,37 @@
</binding-mapping-service>
</binding-forwarded-data-broker>
</module>
- </modules>
+ <!-- Special reader for Context data. Providing context data to outside users over NETCONF/RESTCONF -->
+ <module>
+ <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:v3po:impl">prefix:context-reader</type>
+ <name>context-reader</name>
+ <context-binding-broker>
+ <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
+ <name>honeycomb-context-binding-data-broker</name>
+ </context-binding-broker>
+ </module>
+ <module>
+ <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:utils">prefix:delegating-reader-registry</type>
+ <name>read-registry</name>
+ <root-readers>
+ <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:api">prefix:honeycomb-reader</type>
+ <name>context-reader</name>
+ </root-readers>
+ </module>
+ <!-- END: Special reader for Context -->
+
+ </modules>
<services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
<service>
+ <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:api">prefix:honeycomb-reader</type>
+ <instance>
+ <name>context-reader</name>
+ <provider>/modules/module[type='context-reader'][name='context-reader']</provider>
+ </instance>
+ </service>
+ <service>
<type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:data:api">prefix:data-tree</type>
<instance>
<name>inmemory-context-data-tree</name>
diff --git a/v3po/impl/src/main/config/netconf-north-config.xml b/v3po/impl/src/main/config/netconf-north-config.xml
index f7f0629d4..b41aafeda 100644
--- a/v3po/impl/src/main/config/netconf-north-config.xml
+++ b/v3po/impl/src/main/config/netconf-north-config.xml
@@ -291,15 +291,14 @@
<name>netconf-binding-data-broker</name>
</netconf-monitoring-binding-broker>
</module>
- <!--FIXME disable the reader until this patch is merged and released by ODL: TODO link -->
- <!--<module>-->
- <!--<type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:utils">prefix:delegating-reader-registry</type>-->
- <!--<name>read-registry</name>-->
- <!--<root-readers>-->
- <!--<type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:api">prefix:honeycomb-reader</type>-->
- <!--<name>netconf-monitoring-reader</name>-->
- <!--</root-readers>-->
- <!--</module>-->
+ <module>
+ <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:utils">prefix:delegating-reader-registry</type>
+ <name>read-registry</name>
+ <root-readers>
+ <type xmlns:prefix="urn:honeycomb:params:xml:ns:yang:translate:api">prefix:honeycomb-reader</type>
+ <name>netconf-monitoring-reader</name>
+ </root-readers>
+ </module>
<!-- END: Special reader for Netconf monitoring. -->
</modules>