mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-10-17 14:26:31 +00:00
[master] Merge branch 'trac4204fd'
This commit is contained in:
@@ -755,6 +755,12 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set) {
|
||||
// Remove any existing timers.
|
||||
TimerMgr::instance()->unregisterTimers();
|
||||
|
||||
// Revert any runtime option definitions configured so far and not committed.
|
||||
LibDHCP::revertRuntimeOptionDefs();
|
||||
// Let's set empty container in case a user hasn't specified any configuration
|
||||
// for option definitions. This is equivalent to commiting empty container.
|
||||
LibDHCP::setRuntimeOptionDefs(OptionDefSpaceContainer());
|
||||
|
||||
// Some of the values specified in the configuration depend on
|
||||
// other values. Typically, the values in the subnet6 structure
|
||||
// depend on the global values. Also, option values configuration
|
||||
@@ -948,6 +954,9 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set) {
|
||||
// Rollback changes as the configuration parsing failed.
|
||||
if (rollback) {
|
||||
globalContext().reset(new ParserContext(original_context));
|
||||
// Revert to original configuration of runtime option definitions
|
||||
// in the libdhcp++.
|
||||
LibDHCP::revertRuntimeOptionDefs();
|
||||
return (answer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user