Allow configuration file to be reloaded while NLSR is running
Currently, any changes to the parameters in the NLSR configuration file require NLSR to be restarted to take effect.
Instead, NLSR should subscribe to a signal and reload the configuration file in a manner similar to NFD.
- main.cpp - listen for SIGHUP signal to trigger configuration reload; on signal, reload configuration file and notify NLSR
- nlsr.cpp - An Nlsr::onConfigReload method should be added where clean up or application of newly loaded configuration options can be handled
This task should provide the ability for parameters to be reloaded but should not implement the logic for each parameter. The logic for certain parameters should be added as necessary in separate tasks.
Updated by Junxiao Shi over 4 years ago
This commit is in response to a request from John DeHart for the ability to change link costs on configuration reload. I'm trying to think of a clean way to only allow this option for right now and document that any other changes will be ignored.
Changing link costs can be done through
nlsrc (add a
Using a configuration reload to change link costs would cause more trouble, such as: what if an existing link is deleted (the new cost would be undefined)?