Project

General

Profile

Actions

Task #1499

closed

Ability to customize processing of unrecognized sections ConfigFile

Added by Alex Afanasyev over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Configuration parser should let a callback function to decide whether to ignore an unrecognized section, or to raise an error.

(http://gerrit.named-data.net/#/c/695/)

Actions #1

Updated by Anonymous over 10 years ago

  • Assignee set to Anonymous
Actions #2

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.

Actions #3

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 :)

Actions #4

Updated by Anonymous over 10 years ago

  • Target version changed from v0.2 to v0.1

I'll take care of them.

Actions #5

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.

Actions #6

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.

Actions #7

Updated by Anonymous over 10 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #8

Updated by Alex Afanasyev over 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF