BUG-9223:Remove hardcoded value of lldp interval
[openflowplugin.git] / applications / topology-lldp-discovery / src / main / yang / topology-lldp-discovery-config.yang
index 0e1189e4199f4b66bd6947f5cbcbc46b3a0b230d..205cb2754729ffb72bf949eb915a74f8b93814b4 100644 (file)
@@ -11,11 +11,30 @@ module topology-lldp-discovery-config {
             "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