]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1065] addressed review
authorRazvan Becheriu <razvan@isc.org>
Mon, 27 Jul 2020 15:54:26 +0000 (18:54 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 12 Aug 2020 06:56:43 +0000 (09:56 +0300)
src/hooks/dhcp/lease_cmds/lease_cmds.cc

index 7b61e801af5ba3cf0c864e80ff595d20bb774d7c..531803d9b285b6d88e9b85795cc0839c386a2dae 100644 (file)
@@ -620,6 +620,13 @@ addOrUpdate4(Lease4Ptr lease, bool force_create) {
 
 bool
 addOrUpdate6(Lease6Ptr lease, bool force_create) {
+    /// @todo throw if PD address is in declined state
+    /*
+    if (lease->stateDeclined() && lease->type_ == Lease::TYPE_PD) {
+        isc_throw(isc::InvalidOperation,
+                  "invalid PD address in declined state");
+    }
+    */
     Lease6Ptr existing =
         LeaseMgrFactory::instance().getLease6(lease->type_, lease->addr_);
     if (force_create && !existing) {