2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#101,!87] Disable config-control in kea-dhcp4 until CB work resumes

This commit is contained in:
Thomas Markwalder
2018-10-19 09:12:25 -04:00
parent 642d4b7168
commit b6e628c91e
2 changed files with 6 additions and 0 deletions

View File

@@ -596,8 +596,10 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set,
CfgMgr::instance().getStagingCfg()->getHooksConfig();
libraries.loadLibraries();
#ifdef CONFIG_BACKEND // Disabled until we restart CB work
// If there are config backends, fetch and merge into staging config
databaseConfigFetch(srv_cfg, mutable_cfg);
#endif
}
catch (const isc::Exception& ex) {
LOG_ERROR(dhcp4_logger, DHCP4_PARSER_COMMIT_FAIL).arg(ex.what());

View File

@@ -6259,6 +6259,9 @@ TEST_F(Dhcp4ParserTest, globalReservations) {
EXPECT_FALSE(hosts_cfg->get4(542, Host::IDENT_DUID, &duid[0], duid.size()));
}
// Rather than disable these tests they are compiled out. This avoids them
// reporting as disbabled and thereby drawing attention to them.
#ifdef CONFIG_BACKEND
// This test verifies that configuration control with unsupported type fails
TEST_F(Dhcp4ParserTest, configControlInfoNoFactory) {
string config = PARSER_CONFIGS[6];
@@ -6336,5 +6339,6 @@ TEST_F(Dhcp4ParserTest, serverTag) {
// Make sure a invalid server-tag fails to parse.
ASSERT_THROW(parseDHCP4(bad_tag), std::exception);
}
#endif // CONFIG_BACKEND
}