if (target & HostMgrOperationTarget::ALTERNATE_SOURCES) {
// Don't throw if all targets were selected.
- if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::ALL_SOURCES)) {
+ if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::PRIMARY_SOURCE)) {
isc_throw(NoHostDataSourceManager, "Unable to add new host because there is "
"no hosts-database configured.");
if (target & HostMgrOperationTarget::ALTERNATE_SOURCES) {
// Don't throw if all targets were selected.
- if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::ALL_SOURCES)) {
+ if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::PRIMARY_SOURCE)) {
isc_throw(NoHostDataSourceManager, "Unable to delete a host because there is "
"no hosts-database configured.");
}
if (target & HostMgrOperationTarget::ALTERNATE_SOURCES) {
// Don't throw if all targets were selected.
- if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::ALL_SOURCES)) {
+ if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::PRIMARY_SOURCE)) {
isc_throw(NoHostDataSourceManager, "Unable to delete a host because there is "
"no hosts-database configured.");
}
if (target & HostMgrOperationTarget::ALTERNATE_SOURCES) {
// Don't throw if all targets were selected.
- if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::ALL_SOURCES)) {
+ if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::PRIMARY_SOURCE)) {
isc_throw(NoHostDataSourceManager, "Unable to delete a host because there is "
"no hosts-database configured.");
}
///
/// @return Collection of const @c Host objects.
ConstHostCollection
- getAll4(const SubnetID& subnet_id, const HostMgrOperationTarget target) const;
+ getAll4(const SubnetID& subnet_id, const HostMgrOperationTarget target=HostMgrOperationTarget::ALL_SOURCES) const;
/// @brief Return all hosts in a DHCPv6 subnet.
///