bool
CqlHostDataSourceImpl::insertOrDelete(const HostPtr& host, bool insert) {
+ // If there is no host, there is nothing to do.
+ if (!host) {
+ return (false);
+ }
+
// Get option space names and vendor space names and combine them within a
// single list.
const IPv6Resrv* const reservation,
const std::list<std::string>& option_spaces,
const ConstCfgOptionPtr cfg_option) {
+ // If there is no host, there is nothing to do.
+ if (!host) {
+ return (false);
+ }
+
bool result = true;
// For each option space retrieve all options and insert them into
const ConstCfgOptionPtr cfg_option4,
const std::list<std::string>& option_spaces6,
const ConstCfgOptionPtr cfg_option6) {
+ // If there is no host, there is nothing to do.
+ if (!host) {
+ return (false);
+ }
+
bool result = true;
// If host has no reservation, add entries with null reservation.
const IPv6Resrv* const reservation,
const std::string& option_space,
const OptionDescriptor& option_descriptor) {
+ // If there is no host, there is nothing to do.
+ if (!host) {
+ return (false);
+ }
+
AnyArray assigned_values;
std::unique_ptr<CqlHostExchange> host_exchange(new CqlHostExchange());