2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

30278 Commits

Author SHA1 Message Date
Thomas Markwalder
ddfd1af2f2 [#1106] Cleaned command documentation 2020-03-19 10:44:24 -04:00
Thomas Markwalder
d69a5e8c82 [#1106] Udpated the ARM and created API files
new file:   doc/sphinx/api/lease4-resend-ddns.json
new file:   doc/sphinx/api/lease6-resend-ddns.json
modified:   doc/sphinx/arm/hooks-lease-cmds.rst
2020-03-19 10:44:24 -04:00
Thomas Markwalder
39608d8c5d [#1106] Added unit tests
src/hooks/dhcp/lease_cmds/lease_cmds.cc
    LeaseCmdsImpl::lease4ResendDdnsHandler()
    LeaseCmdsImpl::lease6ResendDdnsHandler() - return CONTROL_RESULT_EMPTY
    when no matching lease is exists.

src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc
    New unit tests
2020-03-19 10:44:24 -04:00
Thomas Markwalder
04e89a7ec3 [#1106] Added leaseX-resend-ddns command to Lease Commands hook lib
src/hooks/dhcp/lease_cmds/lease_cmds.*
    LeaseCmds::
        lease4ResendDdnsHandler()
        lease6ResendDdnsHandler()
    LeaseCmdsImpl::
        lease4ResendDdnsHandler()
        lease6ResendDdnsHandler()
        getAddressParam()

src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
    lease4_resend_ddns()
    lease6_resend_ddns()

src/hooks/dhcp/lease_cmds/lease_cmds_messages.*
    New log messages
2020-03-19 10:44:24 -04:00
Marcin Siodelski
2229ae696f [#1139] Extended commentary
The commentary explaning why we do another client classification evaluation
pass has been extended per review comments.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
2ac4e47cb5 [#1139] Fixed typos in .cc/h files
Fixed typos in the comments within the dhcp4_srv and dhcp6_srv per review
comments.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
4d5944f9e7 [#1139] Addressed doc related comments
I addressed review comments refering to the doc updates. Mainly typos and
grammatical errors.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
02b14b741b [#1139] Added ChangeLog for #1139 2020-03-19 12:14:51 +00:00
Marcin Siodelski
96a56f4a2e [#1139] DHCPv6 classification updated in ARM 2020-03-19 12:14:51 +00:00
Marcin Siodelski
fb4fe8f19e [#1139] Improved host based classification
The DHCPv6 server now supports the case when client classes are specified
in the host reservation and can be used to influence the pool selection
within a top level subnet.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
c08381f70d [#1139] DHCPv4 classification updated
The ARM has been updated to reflect the most recent changes to
classification.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
c642381221 [#1139] Preserve non-host dependent classes
If there are any classes in the host reservations, instead of clearing all
of the classes, remove the ones that are definede in the config. Then,
evaluate them again taking into account reserved ones.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
d6d1e806df [#1139] Added function to erase class 2020-03-19 12:14:51 +00:00
Marcin Siodelski
879116c595 [#1139] Host based classes used in allocation
The change made for DHCPv6 server.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
2b705d9172 [#1139] Host based classes used in allocation
The DHCPv4 server now takes into account client classes specified in
gobal reservations to select a subnet and/or pool for allocation within
a shared network.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
e5c189505e [#1139] Added globalHost() convenience method
This function was added to the ClientContext4 for the DHCPv4 server to be
able to quickly check if there are any global host reservations present
and if the reservations contain client classes which could be possibly
used for leases allocation.
2020-03-19 12:14:51 +00:00
Michal Nowikowski
8ddfc1b1fe [#1154] when lxc box is prepared it should contain all deps for building kea 2020-03-19 12:48:18 +01:00
Michal Nowikowski
78d220a502 [#1152] update freeradius-client versions in hammer.py 2020-03-19 09:46:43 +00:00
Razvan Becheriu
e6f6d14167 [#1148] added ChangeLog 2020-03-18 18:12:04 +02:00
Razvan Becheriu
f7ceca0a83 [#1148] fixed doxygen 2020-03-18 17:54:11 +02:00
Razvan Becheriu
6f00cb77c1 [#1148] make NameChangeSender thread safe 2020-03-18 17:54:11 +02:00
Razvan Becheriu
02d802a50d [#893] addressed review 2020-03-18 16:48:11 +02:00
Razvan Becheriu
fb8a1d2dd2 [#893] generated message files 2020-03-18 16:14:29 +02:00
Razvan Becheriu
c1886605f9 [#893] enable command line parameters 2020-03-18 16:14:29 +02:00
Razvan Becheriu
cd334bd557 [#893] enable command line parameters 2020-03-18 16:14:29 +02:00
Razvan Becheriu
c991f87a82 [#931] addressed review comments 2020-03-13 15:48:39 +02:00
Razvan Becheriu
d626ce17b9 [#931] addressed review comments 2020-03-13 15:41:31 +02:00
Wlodek Wencel
5266da19f2 renamed file 2020-03-13 09:53:57 +01:00
Wlodek Wencel
579e873e18 [#931] renamed files 2020-03-13 07:21:40 +00:00
Wlodek Wencel
811da5897b [#931] addressed review comments 2020-03-13 07:21:40 +00:00
Wlodek Wencel
f0b5c03505 [#931] simulate v4 traffic from different subnets 2020-03-13 07:21:40 +00:00
Razvan Becheriu
3e96d1ae87 [#1016] updated ChangeLog 2020-03-09 17:39:58 +02:00
Razvan Becheriu
d6353e9317 [#1016] added doxygen 2020-03-07 20:21:27 +02:00
Razvan Becheriu
bd53cf07bf [#1016] addressed review 2020-03-07 16:45:03 +02:00
Razvan Becheriu
e6c46e5624 [#1016] fixed compilation 2020-03-06 23:28:17 +02:00
Razvan Becheriu
acb0e5d146 [#1016] fixed compilation 2020-03-06 23:17:04 +02:00
Razvan Becheriu
e1501e0af2 [#1016] removed unnecessary files 2020-03-06 23:10:18 +02:00
Razvan Becheriu
1fb1735927 [#1016] moved critical section to lib util 2020-03-06 15:12:42 +02:00
Razvan Becheriu
ab48ca8bb7 [#1016] minor changes 2020-03-06 13:05:59 +02:00
Razvan Becheriu
f1747e65aa [#1016] fixed unittests 2020-03-06 13:05:59 +02:00
Razvan Becheriu
d965699ef8 [#1016] minor changes 2020-03-06 13:05:59 +02:00
Razvan Becheriu
1e82293631 [#1016] added more checks 2020-03-06 13:05:59 +02:00
Razvan Becheriu
69756c73f6 [#1016] implemented override flag to support interleaved critical sections 2020-03-06 13:05:59 +02:00
Razvan Becheriu
fc5ddfaab0 [#1016] implemented startPktProcessing and stopPktProcessing 2020-03-06 13:05:59 +02:00
Thomas Markwalder
d955b3dda2 [#1124] Reversed order for v6 also
modified:
    alloc_engine.cc
2020-03-04 14:54:50 -05:00
Thomas Markwalder
a47839d801 [#1124] Addressed v4 code review
Minor cleanup in alloc_engine.cc.
2020-03-04 14:54:49 -05:00
Thomas Markwalder
49b540a01c [#1124] Change the order of HR vs lease lookup during v4 lease allocation
src/lib/dhcpsrv/alloc_engine.cc
    AllocEngine::allocateUnreservedLease4() - rather than first testing for a
    host reservation and then looking for an existing lease, we reverse the
    order, thus worrying about HRs only if there is no existing lease.
2020-03-04 14:54:49 -05:00
Thomas Markwalder
5f6ab0e6a4 [#608] Fixed typos 2020-03-04 08:26:14 -05:00
Thomas Markwalder
b219c2dd9f [#608] Addressed review comments
src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
    TEST_F(CSVLeaseFile4Test, embeddedEscapes)  - new test

src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    TEST_F(CSVLeaseFile6Test, embeddedEscapes) - new test

src/lib/util/csv_file.cc
    CSVRow::escapeCharacters() - now automatically also escapes
    first char of escape_tag to preserve input that happens to match
    escape tag

src/lib/util/tests/csv_file_unittest.cc
    TEST(CSVRowTest, escapeUnescape) - added embedded escape tests

plus misc clean up
2020-03-04 08:26:14 -05:00
Thomas Markwalder
ca176e852e [#608] Added unit test case
modified:   csv_file_unittest.cc
2020-03-04 08:26:14 -05:00