Clustering - adding to LispSouthboundPlugin.
[lispflowmapping.git] / mappingservice / southbound / src / main / resources / org / opendaylight / blueprint / mappingservice-southbound.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   odl:use-default-for-reference-types="true">
5
6   <reference id="dataBroker"
7     interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
8     odl:type="pingpong" />
9   <reference id="notificationPublishService"
10     interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService" />
11   <reference id="entityOwnershipService"
12      interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService" />
13
14   <odl:clustered-app-config id="lispSbConfig"
15     binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.lisp.sb.config.rev150517.LispSbConfig">
16   </odl:clustered-app-config>
17
18   <bean id="lispSouthboundPlugin"
19     class="org.opendaylight.lispflowmapping.southbound.LispSouthboundPlugin"
20     init-method="init" destroy-method="close">
21     <argument ref="dataBroker" />
22     <argument ref="notificationPublishService" />
23     <argument ref="lispSbConfig" />
24     <argument ref="entityOwnershipService" />
25   </bean>
26   <service ref="lispSouthboundPlugin"
27     interface="org.opendaylight.lispflowmapping.type.sbplugin.IConfigLispSouthboundPlugin"
28     odl:type="default" />
29
30   <bean id="sbRpcHandler"
31     class="org.opendaylight.lispflowmapping.southbound.LispSouthboundRPC">
32     <argument ref="lispSouthboundPlugin" />
33   </bean>
34   <odl:rpc-implementation ref="sbRpcHandler" />
35
36 </blueprint>