Task #1499
closedAbility to customize processing of unrecognized sections ConfigFile
100%
Description
Configuration parser should let a callback function to decide whether to ignore an unrecognized section, or to raise an error.
Updated by Anonymous over 10 years ago
- Status changed from New to In Progress
My plan is to modify the ConfigFile constructor to accept a callback to be used when a section without a handler is encountered. The default argument value will be function that throws the same exception we currently use.
Updated by Alex Afanasyev over 10 years ago
Sounds good for me. Do you want to re-target this to version 1? If so, then you will be responsible for updates in daemon/main.cpp
and rib/main.cpp
:)
Updated by Anonymous over 10 years ago
- Target version changed from v0.2 to v0.1
I'll take care of them.
Updated by Anonymous over 10 years ago
Will rib manager sections be prefixed by "rib_" (per 695) or encapsulated within a "rib" section? I feel like I've seen both at some point.
Updated by Junxiao Shi over 10 years ago
It's better to use rib_ prefix. This can blur the distinction between RIB Daemon and rest of NFD.
Updated by Anonymous over 10 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Alex Afanasyev over 10 years ago
- Status changed from Code review to Closed