Switch to MD-SAL APIs
[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="deviceOwnershipService" interface="org.opendaylight.openflowplugin.applications.deviceownershipservice.DeviceOwnershipService"/>
8
9   <odl:clustered-app-config id="lldpSpeakerConfig"
10       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.applications.lldp.speaker.config.rev160512.LldpSpeakerConfig">
11     <odl:default-config><![CDATA[
12       <lldp-speaker-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:applications:lldp-speaker:config">
13         <address-destination>01:23:00:00:00:01</address-destination>
14       </lldp-speaker-config>
15     ]]></odl:default-config>
16   </odl:clustered-app-config>
17
18   <odl:action-service id="packetProcessingService"
19       interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService"/>
20
21   <bean id="lldpSpeaker" class="org.opendaylight.openflowplugin.applications.lldpspeaker.LLDPSpeaker"
22           destroy-method="close">
23     <argument ref="packetProcessingService"/>
24     <argument ref="lldpSpeakerConfig"/>
25     <argument ref="deviceOwnershipService"/>
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>