diff options
author | Razvan Becheriu <razvan@isc.org> | 2021-03-18 20:58:03 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2021-03-29 20:11:29 +0200 |
commit | bb87d031475fc9976fbde383189c178265f2da30 (patch) | |
tree | c640e77ff13f96f6bb81675c71719e898be7d8e3 /src/bin/dhcp6/dhcp6_parser.yy | |
parent | [#1621] addressed comments (diff) | |
download | kea-bb87d031475fc9976fbde383189c178265f2da30.tar.xz kea-bb87d031475fc9976fbde383189c178265f2da30.zip |
[#1621] add disable-dhcp-on-db-loss parameter to configure network state effect
Diffstat (limited to 'src/bin/dhcp6/dhcp6_parser.yy')
-rw-r--r-- | src/bin/dhcp6/dhcp6_parser.yy | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/dhcp6/dhcp6_parser.yy b/src/bin/dhcp6/dhcp6_parser.yy index 825503586f..11e9ad4568 100644 --- a/src/bin/dhcp6/dhcp6_parser.yy +++ b/src/bin/dhcp6/dhcp6_parser.yy @@ -79,6 +79,7 @@ using namespace std; CONTACT_POINTS "contact-points" MAX_RECONNECT_TRIES "max-reconnect-tries" RECONNECT_WAIT_TIME "reconnect-wait-time" + DISABLE_DHCP_ON_DB_LOSS "disable-dhcp-on-db-loss" KEYSPACE "keyspace" CONSISTENCY "consistency" SERIAL_CONSISTENCY "serial-consistency" @@ -862,6 +863,7 @@ database_map_param: database_type | contact_points | max_reconnect_tries | reconnect_wait_time + | disable_dhcp_on_db_loss | request_timeout | tcp_keepalive | tcp_nodelay @@ -958,6 +960,12 @@ reconnect_wait_time: RECONNECT_WAIT_TIME COLON INTEGER { ctx.stack_.back()->set("reconnect-wait-time", n); }; +disable_dhcp_on_db_loss: DISABLE_DHCP_ON_DB_LOSS COLON BOOLEAN { + ctx.unique("disable-dhcp-on-db-loss", ctx.loc2pos(@1)); + ElementPtr n(new BoolElement($3, ctx.loc2pos(@3))); + ctx.stack_.back()->set("disable-dhcp-on-db-loss", n); +}; + max_row_errors: MAX_ROW_ERRORS COLON INTEGER { ctx.unique("max-row-errors", ctx.loc2pos(@1)); ElementPtr n(new IntElement($3, ctx.loc2pos(@3))); |