From b825815fa7393808a9bd154a7c901cae29d8dd97 Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Mon, 11 Mar 2019 11:24:33 +0200 Subject: configure serial consistency as well --- src/bin/dhcp4/dhcp4_parser.yy | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/bin/dhcp4/dhcp4_parser.yy') 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); -- cgit v1.2.3