| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
src/bin/dhcp4/ctrl_dhcp4_srv.*
src/bin/dhcp4/ctrl_dhcp6_srv.*
renamed shutdown(exit_value) -> shutdownServer(exit_value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added exit-value argument to shutdown command.
kea-dhcpX servers now exit with EXIT_FAILURE status on db loss
src/lib/process/daemon.*
Daemon::exit_value_, new member with getter/setter
src/lib/process/d_controller.*
DControllerBase::launch() - now returns getExitValue()
DControllerBase::shutdownHandler() - uses exit-value argument to set exit
value
src/lib/process/tests/daemon_unittest.cc
TEST_F(DaemonTest, exitValue) - new test
src/bin/agent/main.cc
Use launch() return value for exit value.
src/bin/agent/tests/ca_controller_unittests.cc
TEST_F(CtrlAgentControllerTest, shutdownExitValue) - new test
src/bin/d2/main.cc
Use launch() return value for exit value.
src/bin/d2/tests/d2_command_unittest.cc
TEST_F(CtrlChannelD2Test, shutdownExitValue) - new test
src/bin/dhcp4/ctrl_dhcp4_srv.*
ControlledDhcpv4Srv::
commandShutdownHandler() - handle exit-value argument
shutdown(int exit_value) - added exit_value parameter
dbReconnect() - call shutdown(EXIT_FAILURE)
dbLostCallback() - call shutdown(EXIT_FAILURE)
src/bin/dhcp4/dhcp4_srv.*
Dhcp4Srv::run() - returns int Daemon::exit_value instead of bool
src/bin/dhcp4/main.cc
Use run() return value for exit value.
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
TEST_F(CtrlChannelDhcpv4SrvTest, commands) - revamped test
src/bin/dhcp6/ctrl_dhcp6_srv.*
ControlledDhcpv6Srv::
commandShutdownHandler() - use exit-value argument to set exit value
shutdown(int exit_value) - added exit_value parameter
dbReconnect() - call shutdown(EXIT_FAILURE)
dbLostCallback() - call shutdown(EXIT_FAILURE)
src/bin/dhcp6/dhcp6_srv.*
Dhcp6Srv::run() - returns int Daemon::exit_value instead of bool
src/bin/dhcp6/main.cc
Use run() return value for exit value.
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
TEST_F(CtrlDhcpv6SrvTest, commands) - revamped test
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added ChangeLog entry
src/bin/dhcp4/ctrl_dhcp4_srv.*
ControlledDhcpv4Srv::dbLostCallback() - schedules a shutdown
once retries have been exhausted/disableld
src/bin/dhcp6/ctrl_dhcp6_srv.*
ControlledDhcpv6Srv::dbLostCallback() - schedules a shutdown
once retries have been exhausted/disableld
src/lib/database/database_connection.h
class DbUnrecoverableError - new exception
src/lib/mysql/mysql_connection.h
MySqlConnection::check_error() - throws DbUnrecoverableError
instead of calling exit()
src/lib/pgsql/pgsql_connection.*
PgSqlConnection::checkStatementError() - throws DbUnrecoverableError
instead of calling exit()
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Checkpoint of the day
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Infrastructure has been added to kea-dhcp6 such that it can
now be configured to fetch full and then periodic updates
from config backends.
Merging the actual fetched content will be done under subsequent
issues.
src/bin/dhcp6
ctrl_dhcp6_srv.*
- ControlledDhcpv6Srv::processConfig() - added logic to schedule CB update timer
- ControlledDhcpv6Srv::cbFetchUpdates() - new callback function for CB updates
dhcp6_lexer.ll
dhcp6_parser.yy
- Added config-fetch-wait-time
dhcp6_messages.mes
- New log messages
dhcp6_srv.*
- Dhcpv6Srv::cb_control_ - new member for config backend access
- Dhcpv6Srv::inTestMode() - new function to test for unit test mode
json_config_parser.cc
- configureDhcp6Server() - invokes full fetch from config backend
src/bin/dhcp6/tests
config_backend_unittest.cc - new file/tests for config backend testing
config_parser_unittest.cc - updated
get_config_unittest.cc - rebuild tests
kea_controller_unittest.cc - added CB control/timer tests
src/lib/dhcpsrv/
dhcpsrv_messages.mes - added log message
cb_ctl_dhcp6.* - new files that provide v6 impl of config backend controller
doc/examples/kea6/all-keys-current.json - added config-fetch-wait-time
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/bin/dhcp4/ctrl_dhcp4_srv.*
src/bin/dhcp6/ctrl_dhcp6_srv.*
Changed dbReconnect() to accept ReconnectCtlPtr
Added commentary for dbReconnect and dbLostCallback
src/lib/dhcpsrv/database_connection.h
Removed extraneous typedef
many files:
Changed DatabaseConnection::Callback to ::DbLostCallback
src/lib/dhcpsrv/tests/database_connection_unittest.cc
Added commentary to text fixture and tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kea-dhcp6
added support for max-reconnect-tries and reconnect-wait-time
to lease and host db parsers
Added a callback for when DB backends detect loss of connectivity
Added a self-rescheduling method to attempt to reconnect to the
backends if retries are enabled
dhcpsrv
PgSqlConnection::checkStatementError() - Modified "fatal" logic
to throw after invoking db_lost_callback.
Misc. cleanup
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|