How to configure ONOS Reactive Forwarding LLDP timers?

236 views
Skip to first unread message

DeJuan

unread,
Jul 20, 2016, 1:29:20 PM7/20/16
to ONOS Discuss
We're interested in changing both the time interval for LLDP issues and the LLDP link aging time. Usualy, the aging time is some multiple of the issuance time but we'd really like to change the two independently. Can we do that with a configuration file somewhere in the tar.gz extracted compilation for ONOS 1.6.0? If we can, would you please point me to where the relevant files are? If not, is it possible if we build it with the source code? If so, where is the file within the source-code based build? 

DeJuan

unread,
Jul 20, 2016, 1:31:17 PM7/20/16
to ONOS Discuss
Oh, and we would like the setting change to be persistent across reboots (and rebuilds if source); please include how to ensure that if it isn't automatically enforced.

DeJuan

unread,
Jul 20, 2016, 1:36:38 PM7/20/16
to ONOS Discuss
As for the source, the code for it is in https://github.com/opennetworkinglab/onos/blob/master/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LldpLinkProvider.java . Here is the relevant section of code for both:

private static final String PROP_PROBE_RATE = "probeRate";
private static final int DEFAULT_PROBE_RATE = 3000;
@Property(name = PROP_PROBE_RATE, intValue = DEFAULT_PROBE_RATE,
label = "LLDP and BDDP probe rate specified in millis")
private int probeRate = DEFAULT_PROBE_RATE;
private static final String PROP_STALE_LINK_AGE = "staleLinkAge";
private static final int DEFAULT_STALE_LINK_AGE = 10000;
@Property(name = PROP_STALE_LINK_AGE, intValue = DEFAULT_STALE_LINK_AGE,
label = "Number of millis beyond which links will be considered stale")
private int staleLinkAge = DEFAULT_STALE_LINK_AGE;

I still do not know how to do it on the tar.gz build.

DeJuan

unread,
Jul 20, 2016, 1:41:48 PM7/20/16
to ONOS Discuss
In the zip, there seems to be a configuration file at $ONOS_HOME/apache-karaf-3.0.5/data/cache/bundle6/data/config/org/onosproject/provider/lldp/impl/LldpLinkProvider.config,
but the file is nearly empty and doesn't seem to have the variables I would like to change. Would adding the lines such as DEFAULT_STALE_LINK_AGE = 10000; result in the desired effect?

Charles Chan

unread,
Jul 20, 2016, 2:03:25 PM7/20/16
to DeJuan, ONOS Discuss
Hi,

This attribute is a component config, which allows you to change the value in runtime without re-compiling the source code.

Charles

On Wed, Jul 20, 2016 at 10:41 AM DeJuan <mitreda...@gmail.com> wrote:
In the zip, there seems to be a configuration file at $ONOS_HOME/apache-karaf-3.0.5/data/cache/bundle6/data/config/org/onosproject/provider/lldp/impl/LldpLinkProvider.config,
but the file is nearly empty and doesn't seem to have the variables I would like to change. Would adding the lines such as DEFAULT_STALE_LINK_AGE = 10000; result in the desired effect?

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-discuss/51dee868-8715-4adc-9296-871cb6ef5cb1%40onosproject.org.

DeJuan

unread,
Jul 20, 2016, 2:25:05 PM7/20/16
to ONOS Discuss, mitreda...@gmail.com
Thank you very much, that was the information we needed, I think. 

DeJuan

unread,
Jul 20, 2016, 2:41:01 PM7/20/16
to ONOS Discuss, mitreda...@gmail.com
Actually, how would we change the default value? That's the last aspect. We tested changing the value and that works as we needed it to, so if you can either explain how to change the default dynamically or explain why it can't be done, I'll mark this as complete. Thank you for your time. 

Charles Chan

unread,
Jul 20, 2016, 2:46:52 PM7/20/16
to DeJuan, ONOS Discuss
Hi,

I think the change you made to component config is persistent during ONOS restart - but I am not 100% sure.
Probably other people on the list can confirm.

Charles

Thomas Vachuska

unread,
Jul 20, 2016, 9:01:21 PM7/20/16
to Charles Chan, DeJuan, ONOS Discuss
That is correct. Component config changes are persisted across restarts; not across re-installs however.

Thomas

Reply all
Reply to author
Forward
0 new messages