Refactor lldp-speaker
[openflowplugin.git] / applications / lldp-speaker / src / main / resources / OSGI-INF / blueprint / lldp-speaker.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" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
7   <reference id="rpcService" interface="org.opendaylight.mdsal.binding.api.RpcConsumerRegistry"/>
8   <reference id="rpcProviderService" interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
9   <reference id="deviceOwnershipService" interface="org.opendaylight.openflowplugin.applications.deviceownershipservice.DeviceOwnershipService"/>
10
11   <odl:clustered-app-config id="lldpSpeakerConfig"
12       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.applications.lldp.speaker.config.rev160512.LldpSpeakerConfig">
13     <odl:default-config><![CDATA[
14       <lldp-speaker-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker:config">
15         <address-destination>01:23:00:00:00:01</address-destination>
16       </lldp-speaker-config>
17     ]]></odl:default-config>
18   </odl:clustered-app-config>
19
20   <bean id="lldpSpeaker"
21         class="org.opendaylight.openflowplugin.applications.lldpspeaker.LLDPSpeaker"
22         destroy-method="close">
23     <argument ref="deviceOwnershipService"/>
24     <argument ref="rpcService"/>
25     <argument ref="rpcProviderService"/>
26     <argument ref="lldpSpeakerConfig"/>
27   </bean>
28
29   <bean id="nodeConnectorEventTranslator" class="org.opendaylight.openflowplugin.applications.lldpspeaker.NodeConnectorInventoryEventTranslator"
30           destroy-method="close">
31     <argument ref="dataBroker"/>
32     <argument>
33       <array>
34         <ref component-id="lldpSpeaker"/>
35       </array>
36     </argument>
37   </bean>
38 </blueprint>