diff options
author | Razvan Becheriu <ravan@isc.org> | 2019-03-11 10:24:33 +0100 |
---|---|---|
committer | Razvan Becheriu <ravan@isc.org> | 2019-03-21 16:50:01 +0100 |
commit | b825815fa7393808a9bd154a7c901cae29d8dd97 (patch) | |
tree | 187864be4a949a4e4717bdecfc652b1ce2e89135 /src/bin/dhcp4/dhcp4_parser.yy | |
parent | fixed compilation with unittests (diff) | |
download | kea-b825815fa7393808a9bd154a7c901cae29d8dd97.tar.xz kea-b825815fa7393808a9bd154a7c901cae29d8dd97.zip |
configure serial consistency as well
Diffstat (limited to 'src/bin/dhcp4/dhcp4_parser.yy')
-rw-r--r-- | src/bin/dhcp4/dhcp4_parser.yy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/dhcp4/dhcp4_parser.yy b/src/bin/dhcp4/dhcp4_parser.yy index 8959ba40ce..7efdeb93d3 100644 --- a/src/bin/dhcp4/dhcp4_parser.yy +++ b/src/bin/dhcp4/dhcp4_parser.yy @@ -91,6 +91,7 @@ using namespace std; CONTACT_POINTS "contact-points" KEYSPACE "keyspace" CONSISTENCY "consistency" + SERIAL_CONSISTENCY "serial-consistency" MAX_RECONNECT_TRIES "max-reconnect-tries" RECONNECT_WAIT_TIME "reconnect-wait-time" REQUEST_TIMEOUT "request-timeout" @@ -714,6 +715,7 @@ database_map_param: database_type | tcp_nodelay | keyspace | consistency + | serial_consistency | unknown_map_entry ; @@ -826,6 +828,14 @@ consistency: CONSISTENCY { ctx.leave(); }; +serial_consistency: SERIAL_CONSISTENCY { + ctx.enter(ctx.NO_KEYWORD); +} COLON STRING { + ElementPtr c(new StringElement($4, ctx.loc2pos(@4))); + ctx.stack_.back()->set("serial-consistency", c); + ctx.leave(); +}; + max_reconnect_tries: MAX_RECONNECT_TRIES COLON INTEGER { ElementPtr n(new IntElement($3, ctx.loc2pos(@3))); ctx.stack_.back()->set("max-reconnect-tries", n); |