diff options
Diffstat (limited to 'src/bin/dhcp6/dhcp6_lexer.ll')
-rw-r--r-- | src/bin/dhcp6/dhcp6_lexer.ll | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll index 4d6b8cb3bc..50d867408e 100644 --- a/src/bin/dhcp6/dhcp6_lexer.ll +++ b/src/bin/dhcp6/dhcp6_lexer.ll @@ -1102,6 +1102,39 @@ ControlCharacterFill [^"\\]|\\["\\/bfnrtu] return isc::dhcp::Dhcp6Parser::make_STRING("ddns-ttl-percent", driver.loc_); } } + +\"ddns-ttl\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::DHCP6: + case isc::dhcp::Parser6Context::SUBNET6: + case isc::dhcp::Parser6Context::SHARED_NETWORK: + return isc::dhcp::Dhcp6Parser::make_DDNS_TTL(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("ddns-ttl", driver.loc_); + } +} + +\"ddns-ttl-min\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::DHCP6: + case isc::dhcp::Parser6Context::SUBNET6: + case isc::dhcp::Parser6Context::SHARED_NETWORK: + return isc::dhcp::Dhcp6Parser::make_DDNS_TTL_MIN(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("ddns-ttl-min", driver.loc_); + } +} + +\"ddns-ttl-max\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::DHCP6: + case isc::dhcp::Parser6Context::SUBNET6: + case isc::dhcp::Parser6Context::SHARED_NETWORK: + return isc::dhcp::Dhcp6Parser::make_DDNS_TTL_MAX(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("ddns-ttl-max", driver.loc_); + } +} \"subnet6\" { switch(driver.ctx_) { |