summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp6/dhcp6_lexer.ll
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2020-04-01 20:38:58 +0200
committerFrancis Dupont <fdupont@isc.org>2020-04-02 21:09:00 +0200
commit8420b499139223d7f8115753cf15a44fcb5ed005 (patch)
tree7d7718c0a9ac820d0756eb98b6aff17dde02097f /src/bin/dhcp6/dhcp6_lexer.ll
parent[#1010] Modified AllocateEngine and parsers to store extended v6 lease info (diff)
downloadkea-8420b499139223d7f8115753cf15a44fcb5ed005.tar.xz
kea-8420b499139223d7f8115753cf15a44fcb5ed005.zip
[#1010] Added support for store-extended-info to kea-dhcp6
src/bin/dhcp4/tests/config_parser_unittest.cc TEST_F(Dhcp4ParserTest, storeExtendedInfoNoGlobal) TEST_F(Dhcp4ParserTest, storeExtendedInfoGlobal) - new tests src/bin/dhcp4/tests/dora_unittest.cc TEST_F(DORATest, storeExtendedInfoEnabled) TEST_F(DORATest, storeExtendedInfoDisabled) - new tests src/bin/dhcp4/tests/get_config_unittest.cc updated unit tests src/bin/dhcp6/dhcp6_lexer.ll src/bin/dhcp6/dhcp6_parser.yy src/bin/dhcp6/json_config_parser.cc added support for store-extended-info src/bin/dhcp6/tests/get_config_unittest.cc updated unit tests src/bin/dhcp6/tests/config_parser_unittest.cc TEST_F(Dhcp6ParserTest, storeExtendedInfoGlobal) TEST_F(Dhcp6ParserTest, storeExtendedInfoNoGlobal) - new tests
Diffstat (limited to 'src/bin/dhcp6/dhcp6_lexer.ll')
-rw-r--r--src/bin/dhcp6/dhcp6_lexer.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll
index e1eb32af38..8ad0499cd8 100644
--- a/src/bin/dhcp6/dhcp6_lexer.ll
+++ b/src/bin/dhcp6/dhcp6_lexer.ll
@@ -972,6 +972,17 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
}
}
+\"store-extended-info\" {
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ case isc::dhcp::Parser6Context::SUBNET6:
+ case isc::dhcp::Parser6Context::SHARED_NETWORK:
+ return isc::dhcp::Dhcp6Parser::make_STORE_EXTENDED_INFO(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("store-extended-info", driver.loc_);
+ }
+}
+
\"shared-networks\" {
switch (driver.ctx_) {
case isc::dhcp::Parser6Context::DHCP6: