| | | V
+----------------+ +--> "all"
-An example configuration that disables reservation looks as follows:
+An example configuration that disables reservations looks as follows:
::
``reservations-out-of-pool``, ``reservations-in-subnet`` and
``reservations-global`` flags.
The flags can be activated independently and can produce various combinations,
-some of them being unsuported by the deprecated ``reservation-mode``.
+some of them being unsupported by the deprecated ``reservation-mode``.
The correspondence of old values are:
The parameter can be specified at global, subnet, and shared-network
levels.
-An example configuration that disables reservation looks as follows:
+An example configuration that disables reservations looks as follows:
::
+-----------------------------+----------------------------+-------------+-------------+-------------+
| reservation-mode | yes | yes | yes | n/a |
+-----------------------------+----------------------------+-------------+-------------+-------------+
- | reservations-out-of-pool | yes | yes | yes | n/a |
+ | reservations-global | yes | yes | yes | n/a |
+-----------------------------+----------------------------+-------------+-------------+-------------+
| reservations-in-subnet | yes | yes | yes | n/a |
+-----------------------------+----------------------------+-------------+-------------+-------------+
- | reservations-global | yes | yes | yes | n/a |
+ | reservations-out-of-pool | yes | yes | yes | n/a |
+-----------------------------+----------------------------+-------------+-------------+-------------+
| t1-percent | yes | yes | yes | n/a |
+-----------------------------+----------------------------+-------------+-------------+-------------+
| | | V
+----------------+ +--> "all"
-An example configuration that disables reservation looks as follows:
+An example configuration that disables reservations looks as follows:
::
``reservations-out-of-pool``, ``reservations-in-subnet`` and
``reservations-global`` flags.
The flags can be activated independently and can produce various combinations,
-some of them being unsuported by the deprecated ``reservation-mode``.
+some of them being unsupported by the deprecated ``reservation-mode``.
The correspondence of old values are:
The parameter can be specified at global, subnet, and shared-network
levels.
-An example configuration that disables reservation looks as follows:
+An example configuration that disables reservations looks as follows:
::
+-----------------------------+----------------------------+-----------+-----------+-----------+------------+
| reservation-mode | yes | yes | yes | n/a | n/a |
+-----------------------------+----------------------------+-----------+-----------+-----------+------------+
- | reservations-out-of-pool | yes | yes | yes | n/a | n/a |
+ | reservations-global | yes | yes | yes | n/a | n/a |
+-----------------------------+----------------------------+-----------+-----------+-----------+------------+
| reservations-in-subnet | yes | yes | yes | n/a | n/a |
+-----------------------------+----------------------------+-----------+-----------+-----------+------------+
- | reservations-global | yes | yes | yes | n/a | n/a |
+ | reservations-out-of-pool | yes | yes | yes | n/a | n/a |
+-----------------------------+----------------------------+-----------+-----------+-----------+------------+
| t1-percent | yes | yes | yes | n/a | n/a |
+-----------------------------+----------------------------+-----------+-----------+-----------+------------+
return ("subnet4");
case RESERVATION_MODE:
return ("reservation-mode");
- case RESERVATION_MODES:
- return ("reservation-modes");
case OPTION_DEF:
return ("option-def");
case OPTION_DATA:
/// This will parse the input as dhcp-ddns. (D2 client config)
PARSER_DHCP_DDNS,
- /// This will parse the input as reservation-modes.
- PARSER_RESERVATION_MODES,
-
/// This will parse the input as config-control.
PARSER_CONFIG_CONTROL,
} ParserType;
/// Used while parsing Dhcp4/config-control
CONFIG_CONTROL,
- /// Used while parsing Dhcp4/reservation-modes
- RESERVATION_MODES,
-
/// Used while parsing config-control/config-databases
CONFIG_DATABASE
return ("subnet6");
case RESERVATION_MODE:
return ("reservation-mode");
- case RESERVATION_MODES:
- return ("reservation-modes");
case OPTION_DEF:
return ("option-def");
case OPTION_DATA:
/// This will parse the input as dhcp-ddns. (D2 client config)
PARSER_DHCP_DDNS,
- /// This will parse the input as reservation-modes.
- PARSER_RESERVATION_MODES,
-
/// This will parse the input as config-control.
PARSER_CONFIG_CONTROL,
} ParserType;
/// Used while parsing Dhcp6/config-control
CONFIG_CONTROL,
- /// Used while parsing Dhcp6/reservation-modes
- RESERVATION_MODES,
-
/// Used while parsing config-control/config-databases
CONFIG_DATABASE
for (auto host : hosts) {
for (auto id : ctx.host_identifiers_) {
// If we find the matching host we know that this address is reserved
- // for us and we can return immediatelly.
+ // for us and we can return immediately.
if (id.first == host->getIdentifierType() &&
id.second == host->getIdentifier()) {
return (false);
/// @brief Parses host reservation mode.
///
- /// @note Configuring 'reservation-mode' is deprecated. The new map
- /// 'reservation-modes' should be used.
+ /// @note Configuring 'reservation-mode' is deprecated. The new
+ /// 'reservations-out-of-pool', 'reservations-in-subnet' and
+ /// 'reservations-global' parameters should be used.
///
/// @param network_data Data element holding shared network
/// configuration to be parsed.