MySqlBinding::createInteger<uint32_t>(subnet->getValid())
};
+ MySqlTransaction transaction(conn_);
+
// Check if the subnet already exists.
Subnet4Ptr existing_subnet = getSubnet4(server_selector, subnet->getID());
for (auto pool : subnet->getPools(Lease::TYPE_V4)) {
createPool4(boost::dynamic_pointer_cast<Pool4>(pool), subnet);
}
+
+ transaction.commit();
}
/// @brief Inserts new IPv4 pool to the database.
MySqlBinding::condCreateInteger<uint32_t>(shared_network->getValid())
};
+ MySqlTransaction transaction(conn_);
+
// Check if the shared network already exists.
SharedNetwork4Ptr existing_network = getSharedNetwork4(server_selector,
shared_network->getName());
conn_.insertQuery(MySqlConfigBackendDHCPv4Impl::INSERT_SHARED_NETWORK4,
in_bindings);
}
+
+ transaction.commit();
}
/// @brief Sends query to the database to retrieve multiple option