diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2016-12-06 21:43:11 +0100 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2016-12-06 21:43:11 +0100 |
commit | dfac5a62ce2d67129a7b30bb003b64aef478b2e2 (patch) | |
tree | cbeda615dae352e76f4c497cd41f189d23017080 /src/bin/dhcp6/dhcp6_parser.yy | |
parent | [5036] readonly support added in hosts-database (diff) | |
download | kea-dfac5a62ce2d67129a7b30bb003b64aef478b2e2.tar.xz kea-dfac5a62ce2d67129a7b30bb003b64aef478b2e2.zip |
[5036] excluded-prefix{-len} implemented in the bison parser
Diffstat (limited to '')
-rw-r--r-- | src/bin/dhcp6/dhcp6_parser.yy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/dhcp6/dhcp6_parser.yy b/src/bin/dhcp6/dhcp6_parser.yy index 2a11e8ba0a..72b03d9edc 100644 --- a/src/bin/dhcp6/dhcp6_parser.yy +++ b/src/bin/dhcp6/dhcp6_parser.yy @@ -86,6 +86,8 @@ using namespace std; PD_POOLS "pd-pools" PREFIX "prefix" PREFIX_LEN "prefix-len" + EXCLUDED_PREFIX "excluded-prefix" + EXCLUDED_PREFIX_LEN "excluded-prefix-len" DELEGATED_LEN "delegated-len" SUBNET "subnet" @@ -1070,6 +1072,8 @@ pd_pool_param: pd_prefix | pd_prefix_len | pd_delegated_len | option_data_list + | excluded_prefix + | excluded_prefix_len | unknown_map_entry ; @@ -1086,6 +1090,19 @@ pd_prefix_len: PREFIX_LEN COLON INTEGER { ctx.stack_.back()->set("prefix-len", prf); } +excluded_prefix: EXCLUDED_PREFIX { + ctx.enter(ctx.NO_KEYWORD); +} COLON STRING { + ElementPtr prf(new StringElement($4, ctx.loc2pos(@4))); + ctx.stack_.back()->set("excluded-prefix", prf); + ctx.leave(); +} + +excluded_prefix_len: EXCLUDED_PREFIX_LEN COLON INTEGER { + ElementPtr prf(new IntElement($3, ctx.loc2pos(@3))); + ctx.stack_.back()->set("excluded-prefix-len", prf); +} + pd_delegated_len: DELEGATED_LEN COLON INTEGER { ElementPtr deleg(new IntElement($3, ctx.loc2pos(@3))); ctx.stack_.back()->set("delegated-len", deleg); |