src/bin/dhcp6/tests/config_backend_unittest.cc
set the CfgMgr family to AF_INET6
TEST_F(Dhcp6CBTest, mergeOptionDefs) - enabled test
src/lib/dhcpsrv/srv_config.cc
SrvConfig::merge6(SrvConfig& other) - now merges
option defs
// Create fresh context.
resetConfiguration();
+ CfgMgr::instance().setFamily(AF_INET6);
}
/// Destructor
// This test verifies that externally configured option definitions
// merged correctly into staging configuration.
-TEST_F(Dhcp6CBTest, DISABLED_mergeOptionDefs) {
+TEST_F(Dhcp6CBTest, mergeOptionDefs) {
string base_config =
"{ \n"
" \"option-def\": [ { \n"
// Merge globals.
mergeGlobals(other);
-#if 0
// Merge option defs. We need to do this next so we
// pass these into subsequent merges so option instances
// at each level can be created based on the merged
// definitions.
cfg_option_def_->merge((*other.getCfgOptionDef()));
+#if 0
// Merge options.
cfg_option_->merge(cfg_option_def_, (*other.getCfgOption()));