}
/// @brief specifies parameter types (true = query by address, false =
- /// query by indetifier-type,identifier)
+ /// query by identifier-type,identifier)
Type query_type;
Lease::Type lease_type;
uint32_t iaid;
- /// @brief Default contstructor.
+ /// @brief Default constructor.
Parameters()
:addr("::"), query_type(TYPE_ADDR), lease_type(Lease::TYPE_NA), iaid(0) {
}
/// @throw Unexpected if CommandMgr is not available (should not happen)
void registerCommands();
- /// @brief Dergisters commands:
+ /// @brief Deregisters commands:
///
/// Deregisters:
/// - lease4-add
/// "valid-lft": 3600,
/// "expire": 12345678,
/// "subnet-id": 1,
- /// "fdqn-fwd": true,
+ /// "fqdn-fwd": true,
/// "fqdn-rev": true,
/// "hostname": "myhost.example.org",
/// "state": 0
// We support several sets of parameters for leaseX-get/lease-del:
// lease-get(type, address)
- // lease-get(type, subnet-id, interifier-type, identifier)
+ // lease-get(type, subnet-id, identifier-type, identifier)
if (params->contains("type")) {
string t = params->get("type")->stringValue();
/// @brief A wrapper class that provides convenient initialization to the library.
///
/// This is a wrapper class that simply registers extra commands when
-/// instantiated and deregisters them when the instance is destryed.
+/// instantiated and deregisters them when the instance is destroyed.
///
/// For an actual implementation, see @ref LeaseCmdsImpl class in lease_cmds.cc file.
class LeaseCmds {
public:
- /// @brief Initalizes additional host commands.
+ /// @brief Initializes additional host commands.
///
/// First, it ensures that either alternate host data source or CfgHosts
/// (configuration storage) are available. Then it checks that CommandMgr
/// timestamp is specified explicitly, we will use that. Note there are no
/// checks whether this is in the past. There may be valid cases when user
/// wants to insert expired leases, e.g. when migrating from one DHCP server
- /// to another and wants to migrate the database as is, without disarding
+ /// to another and wants to migrate the database as is, without discarding
/// any leases.
time_t cltt;
if (lease_info->contains("expire")) {
/// no checks whether this is in the past. There may be valid cases when
/// user wants to insert expired leases, e.g. when migrating from one
/// DHCP server to another and wants to migrate the database as is, without
- /// disarding any leases.
+ /// discarding any leases.
time_t cltt;
if (lease_info->contains("expire")) {
int64_t tmp = getUint32(lease_info, "expire");
/// "cltt": 12345678,
/// "expire": 1499282530,
/// "subnet-id": 1,
-/// "fdqn-fwd": true,
+/// "fqdn-fwd": true,
/// "fqdn-rev": true,
/// "hostname": "myhost.example.org",
/// "state": 0
/// "valid-lft": 3600,
/// "expire": 1499282530,
/// "subnet-id": 1,
-/// "fdqn-fwd": true,
+/// "fqdn-fwd": true,
/// "fqdn-rev": true,
/// "hostname": "myhost.example.org",
/// "state": 0
libraries_.push_back(make_pair(lib, params));
}
- /// @brief Load all specified libriaries.
+ /// @brief Load all specified libraries.
///
/// The libraries are stored in libraries
void loadLibs() {
exp_rsp = "The address 3000::3 does not belong to subnet 2001:db8::/48, subnet-id=66";
testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
- // v4? You're a time traveller from early 80s or what?
+ // v4? You're a time traveler from early 80s or what?
txt =
"{\n"
" \"command\": \"lease6-add\",\n"
/// @brief Returns subnet with specified subnet-id value
///
- /// Warning: this method uses full scan. Its use is not recommeded for
+ /// Warning: this method uses full scan. Its use is not recommended for
/// packet processing.
///
/// @return Subnet (or NULL)
/// @brief Returns subnet with specified subnet-id value
///
- /// Warning: this method uses full scan. Its use is not recommeded for
+ /// Warning: this method uses full scan. Its use is not recommended for
/// packet processing.
///
/// @return Subnet (or NULL)