// Add some configured globals
cfg_to.addConfiguredGlobal("decline-probation-period", Element::create(300));
- cfg_to.addConfiguredGlobal("dhcp4o6port", Element::create(888));
+ cfg_to.addConfiguredGlobal("dhcp4o6-port", Element::create(888));
// Now we'll create the config we'll merge from.
SrvConfig cfg_from;
cfg_from.setServerTag("nor_this_server");
// Add some configured globals:
- cfg_to.addConfiguredGlobal("dhcp4o6port", Element::create(999));
+ cfg_to.addConfiguredGlobal("dhcp4o6-port", Element::create(999));
cfg_to.addConfiguredGlobal("server-tag", Element::create("use_this_server"));
// Now let's merge.
// echo-client-id should be the preserved "to" member value.
EXPECT_EQ(false, cfg_to.getEchoClientId());
- // dhcp4o6port should be the "from" configured value.
+ // dhcp4o6-port should be the "from" configured value.
EXPECT_EQ(999, cfg_to.getDhcp4o6Port());
// server-tag port should be the "from" configured value.
std::string exp_globals =
"{ \n"
" \"decline-probation-period\": 300, \n"
- " \"dhcp4o6port\": 999, \n"
+ " \"dhcp4o6-port\": 999, \n"
" \"server-tag\": \"use_this_server\" \n"
"} \n";
// Add some configured globals
cfg_to.addConfiguredGlobal("decline-probation-period", Element::create(300));
- cfg_to.addConfiguredGlobal("dhcp4o6port", Element::create(888));
+ cfg_to.addConfiguredGlobal("dhcp4o6-port", Element::create(888));
// Now we'll create the config we'll merge from.
SrvConfig cfg_from;
cfg_from.setServerTag("nor_this_server");
// Add some configured globals:
- cfg_to.addConfiguredGlobal("dhcp4o6port", Element::create(999));
+ cfg_to.addConfiguredGlobal("dhcp4o6-port", Element::create(999));
cfg_to.addConfiguredGlobal("server-tag", Element::create("use_this_server"));
// Now let's merge.
// decline-probation-period should be the "to" configured value.
EXPECT_EQ(300, cfg_to.getDeclinePeriod());
- // dhcp4o6port should be the "from" configured value.
+ // dhcp4o6-port should be the "from" configured value.
EXPECT_EQ(999, cfg_to.getDhcp4o6Port());
// server-tag port should be the "from" configured value.
std::string exp_globals =
"{ \n"
" \"decline-probation-period\": 300, \n"
- " \"dhcp4o6port\": 999, \n"
+ " \"dhcp4o6-port\": 999, \n"
" \"server-tag\": \"use_this_server\" \n"
"} \n";