BUG-9223:Remove hardcoded value of lldp interval
[openflowplugin.git] / applications / topology-lldp-discovery / src / main / resources / org / opendaylight / blueprint / topology-lldp-discovery.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   <reference id="notificationService" interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService"/>
8   <odl:clustered-app-config id="topologyLLDPConfig"
9                               binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.lldp.discovery.config.rev160511.TopologyLldpDiscoveryConfig">
10         <odl:default-config><![CDATA[
11       <topology-lldp-discovery-config xmlns="urn:opendaylight:params:xml:ns:yang:topology-lldp-discovery:config">
12         <lldp-secure-key>aa9251f8-c7c0-4322-b8d6-c3a84593bda3</lldp-secure-key>
13       </topology-lldp-discovery-config>
14     ]]></odl:default-config>
15   </odl:clustered-app-config>
16
17   <cm:property-placeholder persistent-id="org.opendaylight.openflowplugin"
18                            update-strategy="none">
19     <cm:default-properties>
20       <!-- Interval to check LLDP links   -->
21       <cm:property name="topology-lldp-interval" value="5000"/>
22       <!-- Expiration interval for aging out links -->
23       <cm:property name="topology-lldp-expiration-interval" value="60000"/>
24     </cm:default-properties>
25   </cm:property-placeholder>
26
27   <bean id="lldpLinkAger" class="org.opendaylight.openflowplugin.applications.topology.lldp.LLDPLinkAger"
28           destroy-method="close">
29     <argument value="${topology-lldp-interval}"/>
30     <argument value="${topology-lldp-expiration-interval}"/>
31     <argument ref="notificationService"/>
32   </bean>
33
34   <bean id="lldpDiscoveryListener" class="org.opendaylight.openflowplugin.applications.topology.lldp.LLDPDiscoveryListener">
35     <argument ref="notificationService"/>
36     <argument ref="lldpLinkAger"/>
37   </bean>
38
39   <bean id="LLDPActivator" class="org.opendaylight.openflowplugin.applications.topology.lldp.LLDPActivator"
40          destroy-method="close">
41     <argument ref="notificationService"/>
42     <argument ref="lldpDiscoveryListener"/>
43     <argument>
44       <bean factory-ref="topologyLLDPConfig" factory-method="getLldpSecureKey"/>
45     </argument>
46   </bean>
47 </blueprint>