Commit e564f4da authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[5535] kea-dhcp6 parsing now supports relay "ip-addresses"

src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
    Modified to support "ip-address" and
    "ip-addresses" under "relay"

src/bin/dhcp6/tests/get_config_unittest.cc
    Updated per process.

src/bin/dhcp6/tests/config_parser_unittest.cc
    void checkResult() - modified to output parsing error text

    TEST_F(Dhcp6ParserTest, subnetRelayInfo)
    TEST_F(Dhcp6ParserTest, sharedNetworksDerive)
    - updated to use new Network methods

    TEST_F(Dhcp6ParserTest, subnetRelayInfoList) - new test
    to verify a list of addresses in relay
parent c71f3d38
This diff is collapsed.
......@@ -1196,6 +1196,7 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
\"ip-addresses\" {
switch(driver.ctx_) {
case isc::dhcp::Parser6Context::RESERVATIONS:
case isc::dhcp::Parser6Context::RELAY:
return isc::dhcp::Dhcp6Parser::make_IP_ADDRESSES(driver.loc_);
default:
return isc::dhcp::Dhcp6Parser::make_STRING("ip-addresses", driver.loc_);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// Generated 201804111534
// A Bison parser, made by GNU Bison 3.0.4.
// Locations for Bison parsers in C++
......
// Generated 201804111534
// A Bison parser, made by GNU Bison 3.0.4.
// Positions for Bison parsers in C++
......
// Generated 201804111534
// A Bison parser, made by GNU Bison 3.0.4.
// Stack handling for Bison parsers in C++
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment