Commit ecd9691c authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[2994] Comments fixes in Dhcpv4Srv and AllocEngine code.

parent 2cbcb533
...@@ -1626,6 +1626,7 @@ TEST_F(Dhcpv4SrvTest, ServerID) { ...@@ -1626,6 +1626,7 @@ TEST_F(Dhcpv4SrvTest, ServerID) {
/// selectSubnetAddr, selectSubnetIface, selectSubnetRelayLinkaddr, /// selectSubnetAddr, selectSubnetIface, selectSubnetRelayLinkaddr,
/// selectSubnetRelayInterfaceId. Note that the concept of interface-id is not /// selectSubnetRelayInterfaceId. Note that the concept of interface-id is not
/// present in the DHCPv4, so not everything is applicable directly. /// present in the DHCPv4, so not everything is applicable directly.
/// See ticket #3057
// Checks if hooks are registered properly. // Checks if hooks are registered properly.
TEST_F(Dhcpv4SrvTest, Hooks) { TEST_F(Dhcpv4SrvTest, Hooks) {
......
...@@ -518,7 +518,7 @@ Lease6Ptr AllocEngine::reuseExpiredLease(Lease6Ptr& expired, ...@@ -518,7 +518,7 @@ Lease6Ptr AllocEngine::reuseExpiredLease(Lease6Ptr& expired,
// Callouts decided to skip the action. This means that the lease is not // Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease // assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the // won't be inserted into the database.
if (callout_handle->getSkip()) { if (callout_handle->getSkip()) {
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE6_SELECT_SKIP); LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE6_SELECT_SKIP);
return (Lease6Ptr()); return (Lease6Ptr());
...@@ -596,7 +596,7 @@ Lease4Ptr AllocEngine::reuseExpiredLease(Lease4Ptr& expired, ...@@ -596,7 +596,7 @@ Lease4Ptr AllocEngine::reuseExpiredLease(Lease4Ptr& expired,
// Callouts decided to skip the action. This means that the lease is not // Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease // assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the // won't be inserted into the database.
if (callout_handle->getSkip()) { if (callout_handle->getSkip()) {
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE4_SELECT_SKIP); LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE4_SELECT_SKIP);
return (Lease4Ptr()); return (Lease4Ptr());
...@@ -655,7 +655,7 @@ Lease6Ptr AllocEngine::createLease6(const Subnet6Ptr& subnet, ...@@ -655,7 +655,7 @@ Lease6Ptr AllocEngine::createLease6(const Subnet6Ptr& subnet,
// Callouts decided to skip the action. This means that the lease is not // Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease // assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the // won't be inserted into the database.
if (callout_handle->getSkip()) { if (callout_handle->getSkip()) {
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE6_SELECT_SKIP); LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE6_SELECT_SKIP);
return (Lease6Ptr()); return (Lease6Ptr());
...@@ -746,7 +746,7 @@ Lease4Ptr AllocEngine::createLease4(const SubnetPtr& subnet, ...@@ -746,7 +746,7 @@ Lease4Ptr AllocEngine::createLease4(const SubnetPtr& subnet,
// Callouts decided to skip the action. This means that the lease is not // Callouts decided to skip the action. This means that the lease is not
// assigned, so the client will get NoAddrAvail as a result. The lease // assigned, so the client will get NoAddrAvail as a result. The lease
// won't be inserted into the // won't be inserted into the database.
if (callout_handle->getSkip()) { if (callout_handle->getSkip()) {
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE4_SELECT_SKIP); LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_HOOKS, DHCPSRV_HOOK_LEASE4_SELECT_SKIP);
return (Lease4Ptr()); return (Lease4Ptr());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment