From: Francis Dupont Date: Tue, 30 Jun 2026 08:32:00 +0000 (+0200) Subject: [#2260] Fixed first item X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac40b721d11e36a22964e6d0a0ddac76079d1280;p=thirdparty%2Fkea.git [#2260] Fixed first item --- diff --git a/src/hooks/dhcp/lease_cmds/lease_cmds.cc b/src/hooks/dhcp/lease_cmds/lease_cmds.cc index 473d85506e..f43a1d70d1 100644 --- a/src/hooks/dhcp/lease_cmds/lease_cmds.cc +++ b/src/hooks/dhcp/lease_cmds/lease_cmds.cc @@ -103,7 +103,7 @@ public: } else { isc_throw(BadValue, "Incorrect identifier type: " << txt << ", the only supported values are: " - "address, hw-address, duid"); + "address, hw-address, duid, client-id"); } } diff --git a/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc b/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc index 4e98b464f9..680b697265 100644 --- a/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc +++ b/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc @@ -1221,7 +1221,7 @@ void Lease4CmdsTest::testLease4GetMissingParams() { " }\n" "}"; exp_rsp = "Incorrect identifier type: color, the only supported values are: " - "address, hw-address, duid"; + "address, hw-address, duid, client-id"; testCommand(cmd, CONTROL_RESULT_ERROR, exp_rsp); // Query by DUID is not supported in v4. Sorry. @@ -2911,7 +2911,7 @@ void Lease4CmdsTest::testLease4DelMissingParams() { " }\n" "}"; exp_rsp = "Incorrect identifier type: color, the only supported values are: " - "address, hw-address, duid"; + "address, hw-address, duid, client-id"; testCommand(cmd, CONTROL_RESULT_ERROR, exp_rsp); // Query by DUID is not supported in v4. Sorry. diff --git a/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc b/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc index 692bc2eac4..fd4ade3ac5 100644 --- a/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc +++ b/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc @@ -1474,7 +1474,7 @@ void Lease6CmdsTest::testLease6GetMissingParams() { " }\n" "}"; exp_rsp = "Incorrect identifier type: color, the only supported values are: " - "address, hw-address, duid"; + "address, hw-address, duid, client-id"; testCommand(cmd, CONTROL_RESULT_ERROR, exp_rsp); // Query by hw-address is not supported in v6. Sorry. @@ -3350,7 +3350,7 @@ void Lease6CmdsTest::testLease6DelMissingParams() { " }\n" "}"; exp_rsp = "Incorrect identifier type: color, the only supported values are: " - "address, hw-address, duid"; + "address, hw-address, duid, client-id"; testCommand(cmd, CONTROL_RESULT_ERROR, exp_rsp); // Query by hw-address is not supported in v6. Sorry.