This reverts commit 8f2a1f8a7a, reversing
changes made to ed7edadcbd.
This merge introduced regressions in our build farm and revealed
issues in the DHCP4o6 IPC code. It also revealed some differences
in sockets handling under Linux and BSD. Rather than continue
patching this here, we should work on the branch to resolve all
issues and then merge 1.1.
src/bin/dhcp6/json_config_parser.cc
- createGlobalDhcp6ConfigParser() - creates ClientClassDefListParser
for "client-classes" element
- configureDhcp6Server() - runs the ClientClassDefListParser against
the "client-classes" element
src/bin/dhcp6/tests/config_parser_unittest.cc
Added new tests for parsing client class definitions:
TEST_F(Dhcp6ParserTest, clientClassDictionary)
TEST_F(Dhcp6ParserTest, invalidClientClassDictionary)
src/bin/dhcp6/dhcp6.spec
Added global "client-classes" element
This change removes ability to disable allocation new leases new
Renew/Rebind, specified in RFC7550. The behavior specified in this
RFC is the only supported behavior.
src/bin/dhcp6/ctrl_dhcp6_srv.cc
ControlledDhcpv6Srv::ControlledDhcpv6Srv()
added CommandMgr init and handler registration
ControlledDhcpv6Srv::~ControlledDhcpv6Srv() {
added CommandMgr shutdown and handler deregistration
src/bin/dhcp6/json_config_parser.cc
- createGlobal6DhcpConfigParser()
added support for "control-socket" element
- configureDhcp6Server()
added logic to configure CommandMgr based on
control-socket configuration element
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
- UnixControlClient - new class that acts as UnixCommandSocket client - CtrlChannelDhcpv6SrvTest - new test fixture for testing a DHCPv6 server
with a Control Channel
- Added the following tests:
TEST_F(CtrlDhcpv6SrvTest, commandsRegistration)
TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelNegative)
TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelShutdown)
TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelStats)
- Documentation for reservation-mode added
- spec files updated
- unit-tests for HR no longer use eth0 or eth1
- @todos added when allow_new_leases_in_renewals_ is expected to be used
- HR unit-test no longer uses at()
- Copyright years updated
- getOptionalParam() used when handling reservation-mode
- hrModeFromText() moved to SubnetConfigParser
- hrModeFromText() starts with lowercase and has its documentation expanded