Commit b37b2a9d authored by Francis Dupont's avatar Francis Dupont

[65-libyang-config-adaptor] A few cosmetics improvements

parent c604855f
......@@ -37,7 +37,7 @@ AdaptorConfig::subnetsCollectID(ConstElementPtr subnets, SubnetIDSet& set) {
}
// If there are subnets defined, let's go over them one by one and
// colled subnet-ids used in them.
// collect subnet-ids used in them.
for (ConstElementPtr subnet : subnets->listValue()) {
if (!collectID(subnet, set)) {
have_ids = false;
......@@ -500,6 +500,7 @@ void
AdaptorConfig::sanitizeDatabase(ConstElementPtr dhcp) {
ConstElementPtr database = dhcp->get("hosts-database");
if (!database) {
// nothing to do here.
return;
}
......@@ -514,6 +515,7 @@ void
AdaptorConfig::sanitizeRelaySuppliedOptions(ConstElementPtr dhcp) {
ConstElementPtr options = dhcp->get("relay-supplied-options");
if (!options || options->empty()) {
// nothing to do here.
return;
}
ElementPtr mutable_dhcp = boost::const_pointer_cast<Element>(dhcp);
......
......@@ -18,11 +18,11 @@ TESTS =
if HAVE_GTEST
TESTS += run_unittests
run_unittests_SOURCES = adaptor_unittests.cc
run_unittests_SOURCES += adaptor_config_unittests.cc
run_unittests_SOURCES += adaptor_option_unittests.cc
run_unittests_SOURCES += adaptor_pool_unittests.cc
run_unittests_SOURCES += adaptor_host_unittests.cc
run_unittests_SOURCES += adaptor_subnet_unittests.cc
run_unittests_SOURCES += adaptor_config_unittests.cc
run_unittests_SOURCES += sysrepo_setup.h
run_unittests_SOURCES += translator_unittests.cc
run_unittests_SOURCES += translator_control_socket_unittests.cc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment