createUpdateOption4(server_selector, pool_id, option, false);
}
-
/// @brief Sends query to insert or update DHCP option in a pool.
///
/// @param selector Server selector.
" (unassigned) is unsupported at the moment");
}
- Option::Universe universe;
std::string msg = "fetching ";
if (pool_type == Lease::TYPE_PD) {
- universe = Option::V6;
msg += "prefix delegation";
} else {
- universe = Option::V4;
msg += "address";
}
-
msg += " pool level option";
auto tag = getServerTag(server_selector, msg);
in_bindings.add(pool_id);
in_bindings.add(code); // Postgresql code is same size regardless of universe
in_bindings.add(space);
-
+ Option::Universe universe = Option::V4;
OptionContainer options;
+ if (pool_type != Lease::TYPE_V4) {
+ universe = Option::V6;
+ }
getOptions(index, in_bindings, universe, options);
return (options.empty() ? OptionDescriptorPtr() :
OptionDescriptor::create(*options.begin()));
const auto& tags = server_selector.getTags();
// This test is not meant to handle multiple server tags all at once.
if (tags.size() != 1) {
- ADD_FAILURE() << "Test error: tags.size(): " << tags.size()
+ ADD_FAILURE() << "Test error: tags.size(): " << tags.size()
<< ", you must specify one and only one server tag";
- }
+ }
// Get the server tag for which we run the current test.
tag = tags.begin()->get();
struct ExpAuditEntry {
/// @brief Type of object changed.
std::string object_type;
+
/// @brief Timestamp the change occurred.
db::AuditEntry::ModificationType modification_type;
+
/// @brief Log message describing the change.
std::string log_message;
};