2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00
Commit Graph

26976 Commits

Author SHA1 Message Date
Francis Dupont
e89e30697f [master] Merge branch 'master' of gitlab.isc.org:isc-projects/kea 2018-08-16 14:11:47 +02:00
Francis Dupont
f2366df139 [master] regen flex/bison 2018-08-16 11:44:40 +00:00
Francis Dupont
762e88096c [master] regen flex/bison 2018-08-16 11:37:55 +00:00
Thomas Markwalder
872e5458d4 [master] Fixed broken log message in MySQL lease manager
src/lib/dhcpsrv/mysql_lease_mgr.cc
    Added missing argument for DHCPSRV_MYSQL_GET_DUID message
2018-08-16 06:52:59 -04:00
Vicky Risk
fe03df4ebd Update README 2018-08-14 14:10:32 -04:00
Vicky Risk
edf0474e67 Update README with link to new Gitlab repo 2018-08-14 14:06:32 -04:00
Thomas Markwalder
436c99f868 [master] Added ChangeLog entry 1443 for trac 5705. 2018-08-14 10:14:15 -04:00
Thomas Markwalder
f991cffd06 [master] kea-dhcp4 now supports global host reservations
Merge branch 'trac5705'
2018-08-14 10:02:34 -04:00
Thomas Markwalder
dbed2f1151 [5705] Minor review revisions 2018-08-14 09:43:04 -04:00
Tomek Mrugalski
ef40a21097 [5705] Changes after review
- doc updated
 - mostly comments
2018-08-14 09:43:04 -04:00
Thomas Markwalder
183010b15a [5705] Added global HR documentation to the admin guide
modified:   doc/guide/dhcp4-srv.xml
2018-08-14 09:43:04 -04:00
Thomas Markwalder
4f8db6c61e [5705] kea-dhcp4 now fully supports globl HRs
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Added support for HR_GLOBAL mode

src/bin/dhcp4/tests/dhcp4_test_utils.cc
    Minor modifications to output exception and config text
    when parsing fails.

src/bin/dhcp4/tests/host_unittest.cc
    New tests to make sure reservation matching behaves
    according to reservation modes

src/lib/dhcpsrv/network.cc
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
    Adding missed bits needed to parse HR_GLOBAL mode
2018-08-14 09:43:04 -04:00
Thomas Markwalder
e46618e63a [5705] AllocEngine4 now matches clients to global HRs
src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp4/tests/host_unittest.cc - new file with global HR tests

src/lib/dhcpsrv/alloc_engine.*
    findGlobalReservation() - new function that searches for global HR

    findReservation() - calls findGlobalReservation() if mode is global

    hasAddressReservation()
    ClientContext4::currentHost()
        - modified to recognize global HRs

src/lib/dhcpsrv/network.h
    Added new mode, Netork::HR_GLOBAL

src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
    TEST_F(AllocEngine4Test, globalReservationReservedAddressDiscover)
    TEST_F(AllocEngine4Test, globalReservationReservedAddressRequest)
    TEST_F(AllocEngine4Test, globalReservationDynamicDiscover)
    TEST_F(AllocEngine4Test, globalReservationDynamicRequest) - new tests
2018-08-14 09:43:04 -04:00
Tomek Mrugalski
ee559726c4 [github99] ChangeLog entries 1436-1441 restored, 1442 added. 2018-08-13 20:19:37 +02:00
Tomek Mrugalski
bd242c8542 [github99] compilation warning removed. 2018-08-13 20:18:04 +02:00
Sunil Kallukudige Sreedhar Mayya
5fbfc0111e [optimize_query] fixed review comments 2018-08-13 20:18:04 +02:00
mayya
a121466e05 [optimize_query] Add new index for query by DUID
Fixes #98
2018-08-13 20:18:04 +02:00
Tomek Mrugalski
8d585b9a4d [github99] Temporarily removing entries to avoid merge errors. 2018-08-13 20:18:04 +02:00
Tomek Mrugalski
3e81c23519 [extend_host_struct] remove white space errors
cherry-picked commit d8bfc574ba2bf8b982a46b947b03db5dd8f65922
  by Mayya Sunil
2018-08-13 20:16:33 +02:00
mayya
fd2a08f42d minor fixes 2018-08-13 20:16:33 +02:00
Tomek Mrugalski
64b3502642 [gitlab9] Imported relevant bits from github99
- Covers changes up to 4358737d43ee1b6c8618a1a8aa3cc7273634ed48,
   but without unnecessary things.
2018-08-13 20:16:33 +02:00
Marcin Siodelski
d30cc343da [master] Added ChangeLog for issue #8. 2018-08-13 19:41:20 +02:00
Marcin Siodelski
3dbaf4917b [gitlab8] Added log message indicating that the unix socket acceptor is opened. 2018-08-13 19:38:35 +02:00
Tomek Mrugalski
64ea9dc4a7 [gitlab11] ChangeLog updated. 2018-08-13 15:45:23 +02:00
Tomek Mrugalski
a24aa03879 [gitlab11] Fixed portability problem in keactrl.version-command on macos 2018-08-13 15:06:17 +02:00
Thomas Markwalder
1f401fc13d [master] Added ChangeLog entry 1440 for Trac #5704 2018-08-09 10:51:46 -04:00
Thomas Markwalder
90fe9ca2cd [master] Infrastructure for global host reserverations
- Internal representation of unused subnets is now SunbetID == SUBNET_ID_UNUSED
- Host Reservations with a subnet id value of SUBNET_ID_GLOBAL are global
- kea-dhcp4/6 servers can now parser reservations at the global level
2018-08-09 10:44:45 -04:00
Thomas Markwalder
dcbbfbfa3d [5704] Addressed review comments
Updated config unit tests, rolled back eval/lexer.cc, etc...
2018-08-09 09:22:43 -04:00
Tomek Mrugalski
628200e4cf [gitlab9] changelog updated 2018-08-09 12:55:51 +02:00
Tomek Mrugalski
4a00ab5d4b [gitlab9] doc updated, test renamed 2018-08-09 12:37:18 +02:00
Tomek Mrugalski
531a33c847 [gitlab9] keactrl version command implemented 2018-08-09 12:26:34 +02:00
Tomek Mrugalski
57590d1e73 [gitlab9] Changes after review:
- man pages updated
 - kea-admin help updated slightly.
2018-08-08 15:08:43 +02:00
Tomek Mrugalski
20e5a32c1f [gitlab9] Keactrl now returns its version. 2018-08-08 13:28:47 +02:00
Tomek Mrugalski
71008a1ad5 [gitlab9] kea-admin now reports its version. 2018-08-08 13:28:24 +02:00
Thomas Markwalder
f1b3b3c76d [5704] host backends and kea-dhcp4/6 support global HR storage
- Added constants for special SubnetIDs:
    SUBNET_ID_GLOBAL, SUBNET_ID_MAX, SUBNET_ID_UNUSED

- Modified code throughout to use these constants, rather than hard-coded
  values.   Note, MySQL and PostgreSQL host backends convert from NULL to
  UNUSED and back.

- kea-dhcp4/6 servers will now parse a "reservations" element at the global
  level.

src/lib/dhcpsrv/subnet_id.h
    Added constants SubnetID SUBNET_ID_GLOBAL, SUBNET_ID_MAX, SUBNET_ID_UNUSED

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
    kea-dhcp4 parsing now handles reservations as a global element

src/bin/dhcp4/tests/config_parser_unittest.cc
    TEST_F(Dhcp4ParserTest, globalReservations) - new test to
    verify global HR parsing

src/bin/dhcp4/tests/dora_unittest.cc
src/lib/dhcpsrv/cfg_hosts.cc
src/lib/dhcpsrv/host.cc
src/lib/dhcpsrv/host_mgr.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
src/lib/dhcpsrv/parsers/host_reservation_parser.cc
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
src/lib/dhcpsrv/tests/host_reservations_list_parser_unittest.cc
src/lib/dhcpsrv/tests/host_unittest.cc
    Replaced SubnetID 0 with SUBNET_ID_UNUSED

src/lib/dhcpsrv/srv_config.cc
    SrvConfig::toElement() - added global reservations output

src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc
    TEST_F(CfgHostsTest, globalSubnetIDs)
    TEST_F(CfgHostsTest, unusedSubnetIDs) - new tests

src/lib/dhcpsrv/tests/host_unittest.cc
    Replaced SubnetID 0 with SUBNET_ID_UNUSED
    TEST_F(HostTest, toText)  - updated to verify global ID output

src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
    TEST_F(MySqlHostDataSourceTest, globalSubnetId4)
    TEST_F(MySqlHostDataSourceTest, globalSubnetId6) - new tests

src/lib/dhcpsrv/tests/srv_config_unittest.cc
    TEST_F(SrvConfigTest, unparseHR) - added global HRs

src/lib/dhcpsrv/testutils/generic_host_data_source_unittest.*
    GenericHostDataSourceTest::testGlobalSubnetId4()
    GenericHostDataSourceTest::testGlobalSubnetId6()

src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/json_config_parser.cc
    kea-dhcp6 now parses reservations as a global element

src/bin/dhcp6/tests/config_parser_unittest.cc
    TEST_F(Dhcp6ParserTest, globalReservations) - new test
2018-08-07 06:46:30 -04:00
Thomas Markwalder
649392e43e [5704] Added subnet-id = 0 unit tests to host data sources
Added tests to verify backends support storing and fetching
    reservations with either v4 or v6 subnet-id values of 0.
2018-08-02 15:43:56 -04:00
Tomek Mrugalski
00877eff89 [master] ChangeLog update after #5683 merge. ha_phase2 2018-07-31 19:18:15 +02:00
Tomek Mrugalski
a8ce7a78b5 [5683] if clause moved in Lease parsers 2018-07-31 18:58:13 +02:00
Thomas Markwalder
0c19bb1c4a [5683] Minor word-smithing 2018-07-31 10:50:19 -04:00
Tomek Mrugalski
ded5f6634d [5683] Corrected text to mention subnet-id = 0 case. 2018-07-31 15:25:38 +02:00
Tomek Mrugalski
356e9cb9ed [5683] Doc updated. 2018-07-31 15:23:16 +02:00
Tomek Mrugalski
4e4e2e475a [5683] subnet-id is now optional in subnetX-add, subnetX-update 2018-07-31 15:13:48 +02:00
Tomek Mrugalski
4ade1d298d [master] Changelog update after 5682 merge. 2018-07-30 20:09:52 +02:00
Tomek Mrugalski
609bfa0a67 [5682] Added two missing log messages 2018-07-30 19:05:19 +02:00
Tomek Mrugalski
a4d6e6b739 [5682] Added extra tests for LeaseFileLoader 2018-07-30 19:05:19 +02:00
Tomek Mrugalski
e29aab3c38 [5682] addLease() parameter is const again 2018-07-30 19:05:19 +02:00
Tomek Mrugalski
41218520cf [5682] SrvConfigTest.unparse fix 2018-07-30 19:05:19 +02:00
Tomek Mrugalski
e4c0039d76 [5682] Changes after review:
- doc updated (no longer claims leaseX-add is covered, v6 is not
   just a pointer anymore)
 - removed calls from MemfileLeaseMgr::addLease
 - removed unnecessary static calls
 - removed no longer needed unit-tests
 - wrote extra unit-tests for lease file loader
2018-07-30 19:05:19 +02:00
Tomek Mrugalski
dde35b6f4d [5682] Revert "[5682] Corrective sanity checks implemented for leaseX-add"
This reverts commit 4d1462582ff4aa1ec663dba5d2dadedb7c0984ed.
2018-07-30 19:05:18 +02:00
Thomas Markwalder
6f5ac609b7 [5682] Added test that demonstrates broken lease update 2018-07-30 19:05:18 +02:00