diff options
author | Razvan Becheriu <razvan@isc.org> | 2021-03-25 22:27:38 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2021-03-29 20:11:29 +0200 |
commit | ca812d1116a62832853d11c9af069d263175f8e8 (patch) | |
tree | 78f717a94e5451e43d84562871c9144eabee4e28 /src/bin/dhcp6/dhcp6_lexer.ll | |
parent | [#1621] disabling connection recovery mechanish is not available in core mana... (diff) | |
download | kea-ca812d1116a62832853d11c9af069d263175f8e8.tar.xz kea-ca812d1116a62832853d11c9af069d263175f8e8.zip |
[#1621] implemented "on-fail" action for connection recovery
Diffstat (limited to 'src/bin/dhcp6/dhcp6_lexer.ll')
-rw-r--r-- | src/bin/dhcp6/dhcp6_lexer.ll | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll index ce9758bd6f..7a63ad15cc 100644 --- a/src/bin/dhcp6/dhcp6_lexer.ll +++ b/src/bin/dhcp6/dhcp6_lexer.ll @@ -725,14 +725,41 @@ ControlCharacterFill [^"\\]|\\["\\/bfnrtu] } } -\"disable-service-on-db-loss\" { +\"on-fail\" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::HOSTS_DATABASE: case isc::dhcp::Parser6Context::CONFIG_DATABASE: - return isc::dhcp::Dhcp6Parser::make_DISABLE_SERVICE_ON_DB_LOSS(driver.loc_); + return isc::dhcp::Dhcp6Parser::make_ON_FAIL(driver.loc_); default: - return isc::dhcp::Dhcp6Parser::make_STRING("disable-service-on-db-loss", driver.loc_); + return isc::dhcp::Dhcp6Parser::make_STRING("on-fail", driver.loc_); + } +} + +\"stop-retry-exit\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::DATABASE_ON_FAIL: + return isc::dhcp::Dhcp6Parser::make_STOP_RETRY_EXIT(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("stop-retry-exit", driver.loc_); + } +} + +\"serve-retry-exit\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::DATABASE_ON_FAIL: + return isc::dhcp::Dhcp6Parser::make_SERVE_RETRY_EXIT(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("serve-retry-exit", driver.loc_); + } +} + +\"serve-retry-continue\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::DATABASE_ON_FAIL: + return isc::dhcp::Dhcp6Parser::make_SERVE_RETRY_CONTINUE(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("serve-retry-continue", driver.loc_); } } |