Check for the SHARD Status before opening the OVSDB port/HwvtepSouthboundProvider...
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / resources / OSGI-INF / blueprint / hwvtepsouthbound.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 HwvtepSouthboundProvider-->
8     <cm:property-placeholder persistent-id="org.opendaylight.ovsdb.hwvtepsouthbound" update-strategy="none">
9         <!-- Setting default values, in case hwvtepsouthbound.cfg file is not present
10         or config property is commented out. This will be overridden if user
11         specify the property in hwvtepsouthbound.cfg file-->
12         <cm:default-properties>
13             <cm:property name="shard-status-check-retry-count" value="1000"/>
14         </cm:default-properties>
15     </cm:property-placeholder>
16
17     <bean id="hwvtepSouthboundProviderConfigurator"
18           class="org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepSouthboundProviderConfigurator">
19         <cm:managed-properties persistent-id="org.opendaylight.ovsdb.hwvtepsouthbound"
20                                update-strategy="component-managed"
21                                update-method="updateConfigParameter"/>
22         <argument ref="hwvtepSouthboundProvider" />
23         <property name="shardStatusCheckRetryCount" value="${shard-status-check-retry-count}"/>
24     </bean>
25
26     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
27     <command>
28         <action class="org.opendaylight.ovsdb.hwvtepsouthbound.TransactionHistoryCmd">
29             <argument ref="hwvtepSouthboundProvider" />
30         </action>
31     </command>
32     </command-bundle>
33 </blueprint>