Razvan Becheriu
7226bdcaa9
[ #3333 ] updated meson files
2025-02-24 19:58:12 +02:00
Razvan Becheriu
8c78d4375c
[ #3333 ] use #3463 fix for radius
2025-02-21 21:34:58 +00:00
Razvan Becheriu
da3813130d
[ #3333 ] removed references and Doxyfile-xml files
2025-02-21 21:34:58 +00:00
Razvan Becheriu
dc5bc2c621
[ #3333 ] applied #3730 changes
2025-02-21 21:34:58 +00:00
Razvan Becheriu
785efcc92a
[ #3333 ] move hook libraries to open source
2025-02-21 21:34:58 +00:00
Francis Dupont
331d0d18c8
[ #3683 ] Merge branch '3683-registering-self-generated-ipv6-addrs-rfc9686-defs' of gitlab.isc.org:isc-projects/kea into 3683-registering-self-generated-ipv6-addrs-rfc9686-defs
2025-02-21 18:41:04 +01:00
Francis Dupont
3d60c0269f
[ #3683 ] Fixed lease_cmds UTs
2025-02-21 18:40:22 +01:00
Francis Dupont
b2ccca342f
[ #3683 ] Addressed comments
2025-02-21 18:23:22 +01:00
Francis Dupont
fc5e761411
[ #3683 ] Updated meson support
2025-02-21 18:23:22 +01:00
Francis Dupont
197c4d265a
[ #3683 ] Fixed typo
2025-02-21 18:23:22 +01:00
Francis Dupont
0a87be83b1
[ #3683 ] Finished update
2025-02-21 18:23:22 +01:00
Francis Dupont
59ef6486e5
[ #3683 ] Checkpoint: update after rebase
2025-02-21 18:23:22 +01:00
Francis Dupont
970e625618
[ #3683 ] Added registered lease state
2025-02-21 18:23:22 +01:00
Francis Dupont
a1645331df
[ #3683 ] Added addr-reg-enable
2025-02-21 18:23:21 +01:00
Francis Dupont
805711755e
[ #3730 ] Update meson.build
2025-02-21 18:43:19 +02:00
Andrei Pavel
a4f48dc0f3
[ #3730 ] Unrelated: fix a doc error on old Sphinx
2025-02-21 18:43:18 +02:00
Andrei Pavel
8e0783550a
[ #3730 ] Add other meson targets
...
- add-changelog-entry
- coverage (.lcovrc)
- cppcheck, cppcheck-report
- doc (renamed from docs)
- grammar
- mes-doc
- uml
- update-python-dependencies
- valgrind (add_test_setup instead of custom target)
2025-02-21 18:43:18 +02:00
Andrei Pavel
ac5c781575
[ #3730 ] Replace HAS_KEA_MSG_COMPILER with KEA_MSG_COMPILER.found()
2025-02-21 18:43:17 +02:00
Francis Dupont
7ae2b5a197
[ #3730 ] Addressed comment
2025-02-21 18:43:17 +02:00
Francis Dupont
78d022805e
[ #3730 ] Fixed message file headers
2025-02-21 18:43:17 +02:00
Andrei Pavel
5c4150041d
[ #3730 ] Update copyright dates
2025-02-21 18:43:17 +02:00
Andrei Pavel
a28eb1f27f
[ #3730 ] Update meson.sh to pull latest
2025-02-21 18:43:12 +02:00
Francis Dupont
9136d0ee7e
[ #3730 ] Moved .libs to @dotlibs@
2025-02-21 18:43:12 +02:00
Francis Dupont
e46ce7668d
[ #3730 ] Added generate parser
2025-02-21 18:43:12 +02:00
Francis Dupont
60b424b8d1
[ #3730 ] Added generate messages
2025-02-21 18:43:12 +02:00
Francis Dupont
411249c0fd
[ #3730 ] Shell tests, src/bin, doc
2025-02-21 18:42:49 +02:00
Francis Dupont
cbd30044c9
[ #3683 ] Addressed comments
2025-02-21 17:23:10 +01:00
Francis Dupont
a77e2f1fdd
[ #3683 ] Updated meson support
2025-02-21 10:48:37 +01:00
Francis Dupont
2db8bb9c02
[ #3683 ] Fixed typo
2025-02-21 10:45:02 +01:00
Francis Dupont
73845e4e57
[ #3683 ] Finished update
2025-02-21 10:45:02 +01:00
Francis Dupont
c41cac3aa7
[ #3683 ] Checkpoint: update after rebase
2025-02-21 10:45:02 +01:00
Francis Dupont
b3553db19d
[ #3683 ] Added registered lease state
2025-02-21 10:45:02 +01:00
Francis Dupont
06c6e5cae2
[ #3683 ] Added addr-reg-enable
2025-02-21 10:45:02 +01:00
Thomas Markwalder
3a1d358972
[ #3463 ] Added note to ARM
...
modified: arm/hooks-lease-cmds.rst
2025-02-19 13:16:49 -05:00
Thomas Markwalder
2e3a01edb5
[ #3463 ] Addressed review comments
...
/src/hooks/dhcp/lease_cmds/lease_cmds.cc
Add null lease checks
/src/lib/dhcpsrv/lease.cc
Lease4::decline() - wipe user context
/src/lib/dhcpsrv/tests/lease_unittest.cc
TEST_F(Lease4Test, decline) - verify user context
is wiped
2025-02-19 10:12:34 -05:00
Francis Dupont
bd1877ce1f
[ #3463 ] Spelling
2025-02-19 11:27:18 +01:00
Francis Dupont
efc6d54bef
[ #3463 ] Spelling
2025-02-19 11:24:46 +01:00
Francis Dupont
9d15c36960
[ #3463 ] Updated meson.build files
2025-02-19 11:20:01 +01:00
Thomas Markwalder
ea27531e9d
[ #3463 ] Fixed JSON error in ARM
2025-02-18 14:24:17 -05:00
Thomas Markwalder
68484ade70
[ #3463 ] Addressed most of review comments
2025-02-18 18:54:19 +00:00
Thomas Markwalder
078100ec8e
[#3463} Fix Changelog indent
2025-02-18 18:54:19 +00:00
Thomas Markwalder
0fa0a17857
[#3464} Fix ARM again
...
Added missing blank line.
2025-02-18 18:54:19 +00:00
Thomas Markwalder
5cc3d240cd
[ #3463 ] Fix JSON in ARM
...
modified: hooks-lease-cmds.rst
2025-02-18 18:54:19 +00:00
Thomas Markwalder
69380a93fd
[ #3463 ] Updated ARM
...
new file:
changelog_unreleased/3463-optionally-store-response-dhcp-options-in-lease-user-context
modified:
doc/sphinx/arm/hooks-lease-cmds.rst
2025-02-18 18:54:19 +00:00
Thomas Markwalder
8d0f50720a
[ #3463 ] V6 UTs working
...
Finished V6 UTs. Also re-organized tests so those
that rely on loading the library are now in libloadtests:
tests/lease_cmds4_unittest.cc -> libloadtests/lease_cmds4_unittest.cc
tests/lease_cmds6_unittest.cc -> libloadtests/lease_cmds6_unittest.cc
tests/lease_cmds_unittest.cc -> libloadtests/lease_cmds_unittest.cc
tests/lease_cmds_unittest.h -> libloadtests/lease_cmds_unittest.h
Create new files to house new callout handler tests which rely on
the library being linked in so functions are visible:
new file: tests/lease_cmds_func4_unittest.cc
new file: tests/lease_cmds_func6_unittest.cc
new file: tests/lease_cmds_func_unittest.h
/src/hooks/dhcp/lease_cmds/lease_cmds.cc
LeaseCmdsImpl::leases6Committed() - track but don't
throw on leases that fail so all leases are attempted
/src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
Tweaked and reordered
/src/hooks/dhcp/lease_cmds/libloadtests/Makefile.am
Added lease_cmds_unittest* here since they rely on
loading the library
/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc
/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc
removed new code relating to callout handler tests as they
use lib functions directly
/src/hooks/dhcp/lease_cmds/tests/Makefile.am
Removed lease_cmds*_unittest.* (now in libloadatests)
Added lease_cmds_func*_unittest.*
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
Moved BindingVariableHandlerTest code into
lease_cmds_func*_unittest.*
2025-02-18 18:54:19 +00:00
Thomas Markwalder
556de90ac0
[ #3463 ] Added v6 implementation
...
/src/bin/dhcp6/dhcp6_srv.cc
Dhcpv6Srv::processLocalizedQuery6() - add response6 to leases6_committed
callout arguments
/src/bin/dhcp6/tests/hooks_unittest.cc
Update tests to expect with response6
/src/hooks/dhcp/lease_cmds/lease_cmds.*
Add leases6Committed() handler
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
Add leases6_committed()callout
/src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
LEASE_CMDS_LEASES6_COMMITTED_FAILED - new message
/src/hooks/dhcp/lease_cmds/tests/lease_cmds6_unittest.cc
TEST_F(Lease6CmdsTest, validLeases6Committed)
TEST_F(Lease6CmdsTest, validLeases6CommittedMultiThreading)
TEST_F(Lease6CmdsTest, nopLeases6Committed)
TEST_F(Lease6CmdsTest, nopLeases6CommittedMultiThreading)
- new tests
2025-02-18 18:54:19 +00:00
Thomas Markwalder
00dcacbc23
[ #3463 ] Add response4 to V4 callout arguments
...
/src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processLocalizedQuery4(AllocEngine::ClientContext4Ptr& ctx,
- Added response4 argument to lease4_offer and leases4_committed callout_handles.
/src/bin/dhcp4/tests/hooks_unittest.cc
Updated tests
/src/hooks/dhcp/lease_cmds/lease_cmds.*
lease4_offer() handling
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
added lease4_offer callout
/src/hooks/dhcp/lease_cmds/libloadtests/load_unload_unittests.cc
TEST_F(LeaseCmdsCbLibLoadTest, verifyCallouts4)
TEST_F(LeaseCmdsCbLibLoadTest, verifyCallouts6) - new tests
/src/hooks/dhcp/lease_cmds/tests/lease_cmds4_unittest.cc
TEST_F(Lease4CmdsTest, validLease4Offer)
TEST_F(Lease4CmdsTest, validLease4OfferMultiThreading)
TEST_F(Lease4CmdsTest, nopLeases4Committed)
TEST_F(Lease4CmdsTest, nopLeases4CommittedMultiThreading)
- new tests
2025-02-18 18:54:19 +00:00
Thomas Markwalder
8bd26523b5
[ #3463 ] Implementd leases4_committed callout
...
/src/hooks/dhcp/lease_cmds/binding_variables.cc
BindingVariableMgr::evaluateVariables()
- Add a throw if query,response, or lease are empty
/src/hooks/dhcp/lease_cmds/lease_cmds.*
LeaseCmdsImpl::leases4Committed()
LeaseCmds::leases4Committed()
- implemented callout handler
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
leases4_committed(CalloutHandle& handle) - new callout
/src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
LEASE_CMDS_LEASES4_COMMITTED_NOTHING_TO_UPDATE
LEASE_CMDS_LEASES4_COMMITTED_FAILED processing - new messages
/src/hooks/dhcp/lease_cmds/tests/lease_cmds4_unittest.cc
void Lease4CmdsTest::testValidLeases4Committed()
TEST_F(Lease4CmdsTest, validLeases4Committed)
TEST_F(Lease4CmdsTest, validLeases4CommittedMultiThreading)
- new tests
2025-02-18 18:54:19 +00:00
Thomas Markwalder
d1c3136fd7
[ #3463 ] Add evaluateVariables UTs
...
/src/hooks/dhcp/lease_cmds/binding_variables.cc
BindingVariableMgr::evaluateVariables() - store empty
evaluated variable values
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
TEST(BindingVariableMgrTest, evaluateVariables4) - new test
TEST(BindingVariableMgrTest, evaluateVariables6) - new test
src/lib/dhcpsrv/lease.cc
fixed spacing
2025-02-18 18:54:19 +00:00
Thomas Markwalder
89f08dd667
[ #3463 ] Add BindingVariableMgr::evaluateVariables
...
/src/hooks/dhcp/lease_cmds/binding_variables.*
BindingVariableMgr::evaluateVariables() - initial implementation
/src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::updateLease4ExtendedInfo()
AllocEngine::updateLease6ExtendedInfo()
- use Lease::updateUserContextISC()
/src/lib/dhcpsrv/lease.*
bool Lease::updateUserContextISC() - new function that
adds/updates an element in the "ISC" map in the lease's
user-context.
2025-02-18 18:54:19 +00:00