Merge "BUG-7608: use blueprint action-provider/action-service"
[openflowplugin.git] / applications / lldp-speaker / src / main / resources / org / opendaylight / 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.controller.md.sal.binding.api.DataBroker"/>
7
8   <odl:clustered-app-config id="lldpSpeakerConfig"
9       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.applications.lldp.speaker.config.rev160512.LldpSpeakerConfig">
10     <odl:default-config><![CDATA[
11       <lldp-speaker-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker:config">
12         <address-destination>01:23:00:00:00:01</address-destination>
13       </lldp-speaker-config>
14     ]]></odl:default-config>
15   </odl:clustered-app-config>
16
17   <odl:action-service id="packetProcessingService"
18       interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService"/>
19
20   <bean id="lldpSpeaker" class="org.opendaylight.openflowplugin.applications.lldpspeaker.LLDPSpeaker"
21           destroy-method="close">
22     <argument ref="packetProcessingService"/>
23     <argument>
24       <bean factory-ref="lldpSpeakerConfig" factory-method="getAddressDestination"/>
25     </argument>
26   </bean>
27
28   <bean id="nodeConnectorEventTranslator" class="org.opendaylight.openflowplugin.applications.lldpspeaker.NodeConnectorInventoryEventTranslator"
29           destroy-method="close">
30     <argument ref="dataBroker"/>
31     <argument>
32       <array>
33         <ref component-id="lldpSpeaker"/>
34       </array>
35     </argument>
36   </bean>
37
38   <bean id="operationalStatusChangeService" class="org.opendaylight.openflowplugin.applications.lldpspeaker.OperationalStatusChangeService">
39     <argument ref="lldpSpeaker"/>
40   </bean>
41
42   <odl:rpc-implementation ref="operationalStatusChangeService"/>
43 </blueprint>