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)
- config-reload command added
- config and command handlers cleaned up
- files renamed
- Majority of the backend code is now common
- Added unit-test for config-reload command
- file read can now ignore # comments in file
- there are JSON specific unit-tests now in src/bin/dhcp6
- BIND10 backend specific tests moved to separate file