<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
odl:use-default-for-reference-types="true">
<reference id="notificationService" interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService"/>
-
<odl:clustered-app-config id="topologyLLDPConfig"
- binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.lldp.discovery.config.rev160511.TopologyLldpDiscoveryConfig">
- <odl:default-config><![CDATA[
+ binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.lldp.discovery.config.rev160511.TopologyLldpDiscoveryConfig">
+ <odl:default-config><![CDATA[
<topology-lldp-discovery-config xmlns="urn:opendaylight:params:xml:ns:yang:topology-lldp-discovery:config">
<lldp-secure-key>aa9251f8-c7c0-4322-b8d6-c3a84593bda3</lldp-secure-key>
</topology-lldp-discovery-config>
]]></odl:default-config>
</odl:clustered-app-config>
+ <cm:property-placeholder persistent-id="org.opendaylight.openflowplugin"
+ update-strategy="none">
+ <cm:default-properties>
+ <!-- Interval to check LLDP links -->
+ <cm:property name="topology-lldp-interval" value="5000"/>
+ <!-- Expiration interval for aging out links -->
+ <cm:property name="topology-lldp-expiration-interval" value="60000"/>
+ </cm:default-properties>
+ </cm:property-placeholder>
+
<bean id="lldpLinkAger" class="org.opendaylight.openflowplugin.applications.topology.lldp.LLDPLinkAger"
destroy-method="close">
- <!-- Interval to send LLDP (five seconds) -->
- <argument value="5000"/>
- <!-- Expiration interval for aging out links (3 * the interval) -->
- <argument value="15000"/>
+ <argument value="${topology-lldp-interval}"/>
+ <argument value="${topology-lldp-expiration-interval}"/>
<argument ref="notificationService"/>
</bean>
"Initial revision.";
}
+ typedef non-zero-uint32-type {
+ type uint32 {
+ range "1..max";
+ }
+ }
+
container topology-lldp-discovery-config {
leaf lldp-secure-key {
description "Provided key will be used to generate LLDP custom security hash";
type string;
mandatory true;
}
+
+ leaf topology-lldp-interval {
+ description "Periodic interval for sending LLDP packet for link discovery";
+ type non-zero-uint32-type;
+ default 5000;
+ }
+
+ leaf topology-lldp-expiration-interval {
+ description "Timeout duration for LLDP response message";
+ type non-zero-uint32-type;
+ default 60000;
+ }
+
}
}
\ No newline at end of file
# Number of time forwarding rules manager should retry to reconcile any specific
# configuration.
-# reconciliation-retry-count=5
\ No newline at end of file
+# reconciliation-retry-count=5
+
+
+#############################################################################
+# #
+# Topology Lldp Discovery Configuration #
+# #
+#############################################################################
+
+# Periodic interval for sending LLDP packet for link discovery
+# topology-lldp-interval=5000
+
+# Timeout duration for LLDP response message
+# topology-lldp-expiration-interval=60000
\ No newline at end of file