5eaf9f0339d620db8a86d9056256d5050866ff33
[ovsdb.git] / library / impl / src / main / resources / OSGI-INF / blueprint / library.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
4            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
5            odl:use-default-for-reference-types="true">
6
7   <!-- Read default values at startup and inject to OvsdbConnectionService-->
8   <cm:property-placeholder persistent-id="org.opendaylight.ovsdb.library" update-strategy="none">
9     <!-- Setting default values, in case library.cfg file is not present
10     or config property is commented out. This will be overridden if user
11     specify the property in library.cfg file-->
12     <cm:default-properties>
13       <cm:property name="ovsdb-listener-ip" value="0.0.0.0"/>
14       <cm:property name="ovsdb-listener-port" value="6640"/>
15       <cm:property name="ovsdb-rpc-task-timeout" value="1000"/>
16       <cm:property name="use-ssl" value="false"/>
17       <cm:property name="json-rpc-decoder-max-frame-length" value="100000"/>
18     </cm:default-properties>
19   </cm:property-placeholder>
20
21   <reference id="aaaCertificateManager"
22         interface="org.opendaylight.aaa.cert.api.ICertificateManager"
23         odl:type="default-certificate-manager"/>
24
25   <!-- Notify OvsdbConnectionService with any change in the config properties value-->
26   <bean id="ovsdbConnectionService" class="org.opendaylight.ovsdb.lib.impl.OvsdbConnectionService">
27     <argument ref="aaaCertificateManager"/>
28     <cm:managed-properties persistent-id="org.opendaylight.ovsdb.library"
29                            update-strategy="component-managed"
30                            update-method="updateConfigParameter"/>
31     <property name="ovsdbListenerIp" value="${ovsdb-listener-ip}"/>
32     <property name="ovsdbListenerPort" value="${ovsdb-listener-port}"/>
33     <property name="ovsdbRpcTaskTimeout" value="${ovsdb-rpc-task-timeout}"/>
34     <property name="useSsl" value="${use-ssl}"/>
35     <property name="jsonRpcDecoderMaxFrameLength" value="${json-rpc-decoder-max-frame-length}"/>
36   </bean>
37
38   <service ref="ovsdbConnectionService" interface="org.opendaylight.ovsdb.lib.OvsdbConnection"
39     odl:type="default" />
40
41 </blueprint>