Feature #4303
closed
Optionally write prefixes to configuration file that were advertised in NLSR
Added by Ashlesh Gawande about 7 years ago.
Updated almost 6 years ago.
Description
Suggested in ICN. So if NLSR does down and recover then it can load all the prefixes that are supposed to be advertised.
- Assignee set to Saurab Dulal
- Target version set to v0.5.0
This should be a command line option to nlsrc advertise/withdraw as to whether to save/remove from nlsr.conf advertising section.
- Status changed from New to In Progress
- % Done changed from 0 to 10
- % Done changed from 10 to 50
Some limitations with this patch.
1. It removes all the comments from the conf file. It's because I am using BOOST to read and write to the conf file, BOOST removes the comments in that process.
2. Once a prefix is advertised without a save command, it cannot be saved later.
3. Once a prefix is withdrawn without a delete command, it will not be deleted from the conf file.
Above limitations has been resolved.
Additionally,
few StatusCodes are introduced in NLSR.
406: Prefix is already saved or deleted from the configuration file.
205: Saving or deleting a prefix from the configuration file. This also includes saving or deleting an already advertised or withdrawn prefix from the configuration file.
StatusCode loosely follows the HTTP semantics described in RFC2616 section 10 (RFC2616)
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
- Status changed from Closed to Feedback
Davide reports that changing /etc files during runtime is not a good idea as they are supposed to be static.
Ehm... Yes, config files should be static and it is quite unexpected if they are modified... If you need modifiable state, it should go under /var
area. On some systems, this /var
area can be different and is managed by the system appropriately.
- Related to Task #4823: nlsr.conf file should not be modified during the runtime added
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF