[kea-dev] : Reference needed for new parameter addition
Tomek Mrugalski
tomek at isc.org
Fri Aug 10 17:51:30 UTC 2018
On 10.08.2018 13:15, sunil mayya wrote:
> I wanted to add new configuration parameter which enables
> reconfiguration for the server. If there any previous merge requests /
> commits for reference that would be very useful.
Take a look at a recent ticket 5682. It added a new scope and a
parameter within it. Your task is simpler, because you don't need to add
extra scopes, just a new parameter in existing global scope.
The commit you may look at is 4cb3ae1902f433136ef5a6077a7b8c3cf996b5e5.
Look at the .yy and .ll changes. You don't need to modify
parser_context. You need to modify the code in json_config_parser.cc
a bit to store your new parameter. Also, take a look at
src/lib/dhcpsrv/parsers/simple_parser6.cc. This is where the defaults
are set up.
Make sure you compile with --enable-generate-parser and have flex and
bison installed.
Good luck,
Tomek
More information about the kea-dev
mailing list