namespace isc {
namespace dhcp {
-bool
+void
BaseNetworkParser::moveReservationMode(ElementPtr config) {
if (!config->contains("reservation-mode")) {
- return (false);
+ return;
}
if (config->contains("reservations-global") ||
config->contains("reservations-in-subnet") ||
<< getPosition("reservation-mode", config) << ")");
}
config->remove("reservation-mode");
- return (true);
}
const Triplet<uint32_t>
/// @param config [in/out] configuration to alter.
/// @throw DhcpConfigError on error e.g. when both reservation-mode
/// and a flag are specified.
- /// @return true if reservation-mode parameter has been replaces with
- /// new reservations-global, reservations-in-subnet and
- /// reservations-out-of-pool parameters, false otherwise.
- static bool moveReservationMode(isc::data::ElementPtr config);
+ static void moveReservationMode(isc::data::ElementPtr config);
protected: