2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00
Commit Graph

26671 Commits

Author SHA1 Message Date
Tomek Mrugalski
4a42a26af8 [5682] Unit-tests written for lease file loader 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
9e14140b26 [5682] get-config unit-test rebuilds partially automated. 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
7beba1dbbb [5682] sanity-checker can now use staging/current config, tests improved 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
814a9749c2 [5682] Sanity checks unittests in libdhcpsrv are now working 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
b8f2472a83 [5682] Example configs added. 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
4cb3ae1902 [5682] DHCP4, DHCP6 parsers extended to support sanity-checks 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
5bf6881bbf [5682] Consistency checks implemented in libdhcpsrv 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
e80f4b7bb7 [master] ChangeLog updated after 5680 merge. 2018-07-27 13:56:08 +02:00
Tomek Mrugalski
32466ab3d4 [5680] Changes after review 2018-07-27 13:54:10 +02:00
Thomas Markwalder
ae906a531e [5680] Updated kea admin guide
dhcp4-srv.xml
dhcp6-srv.xml
    Added sections for host-name-sanitizing
2018-07-27 13:54:10 +02:00
Thomas Markwalder
ef79d382ce [5680] Use raw text from dns::Name to cope with escape sequences
src/lib/dhcpsrv/d2_client_mgr.h
    D2ClientMgr::adjustDomainName() - modified to start with
    raw text domain name, this allows us to cope with escape
    sequences

src/lib/dhcpsrv/tests/d2_client_unittest.cc
    Updated unit tests
2018-07-27 13:54:10 +02:00
Thomas Markwalder
9b39ff3343 [5680] Add ability to fetch unescaped string from dns::Name
src/lib/dns/labelsequence.cc
src/lib/dns/labelsequence.h
    Added LabelSequence::toRawText()

src/lib/dns/name.cc
src/lib/dns/name.h
    Added Name::toRawText() and LabelSequence::toRawText()

src/lib/dns/tests/labelsequence_unittest.cc
src/lib/dns/tests/name_unittest.cc
    Added unit tests
2018-07-27 13:54:10 +02:00
Thomas Markwalder
fcd08902ca [5680] Added unit tests to verify kea-dhcp6 santizes FQDN values
modified:   src/bin/dhcp6/tests/fqdn_unittest.cc
2018-07-27 13:54:10 +02:00
Thomas Markwalder
8ac1c13d7e [5680] kea-dhcp4 supports client FQDN name sanitizing
src/lib/dhcpsrv/d2_client_mgr.h
    D2ClientMgr::adjustDomainName() - added logic to
    sanitize the inbound FQDN name when configured to do so

src/lib/dhcpsrv/tests/d2_client_unittest.cc
    TEST(D2ClientMgr, sanitizeFqdnV4)
    TEST(D2ClientMgr, sanitizeFqdnV6) - new tests

src/bin/dhcp4/tests/fqdn_unittest.cc
    TEST_F(NameDhcpv4SrvTest, sanitizeFqdn) - new test
2018-07-27 13:54:10 +02:00
Thomas Markwalder
6402f68e8e [5680] User guide updated with new params
doc/guide/dhcp4-srv.xml
    Added discussion of new params to Dhcp4/dhcp-ddns section

src/lib/dhcpsrv/d2_client_cfg.h
    fixed missing params doxygen error
2018-07-27 13:54:10 +02:00
Thomas Markwalder
1825ead45e [5680] kea-dhcp4 now uses hostname sanititzer when configured for it
src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::processHostnameOption() - sanitizes client hostname
    if configured to do so

src/bin/dhcp4/tests/fqdn_unittest.cc
    TEST_F(NameDhcpv4SrvTest, sanitizeHostname) - new test to
    verify hostname sanitizing works as expected

src/lib/dhcpsrv/d2_client_cfg.h
    D2ClientConfig::getHostnameSanitizer() added missing getter

src/lib/dhcpsrv/tests/d2_client_unittest.cc
    TEST(D2ClientConfigTest, constructorsAndAccessors) - updated to
    verify hostname sanitizing stuff

src/lib/util/strutil.cc
    fixed regex compilation issue
2018-07-27 13:54:10 +02:00
Thomas Markwalder
eb264aecca [5680] Refactor stringSanitizer func into StringSanitizer class
modified:
    src/lib/dhcpsrv/d2_client_cfg.cc
    src/lib/dhcpsrv/d2_client_cfg.h
    src/lib/util/strutil.cc
    src/lib/util/strutil.h
    src/lib/util/tests/strutil_unittest.cc
2018-07-27 13:54:10 +02:00
Thomas Markwalder
ea3d6bca65 [5680] kea-dhcp4/6 now parse hostname-char-set and hostname-char-replacment params
Added to parsing and parsing unit tests.
Servers do not yet utilize the values.

Modified:

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy

src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp4/tests/get_config_unittest.

src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy

src/bin/dhcp6/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.
2018-07-27 13:54:10 +02:00
Thomas Markwalder
54bb07ee25 [5680] Added support for D2 client hostname sanitizer parms to dhcpsrv lib
src/lib/dhcpsrv/d2_client_cfg.*
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
src/lib/dhcpsrv/tests/d2_client_unittest.cc
src/lib/dhcpsrv/tests/d2_udp_unittest.cc
    Added defaults and handling for new params,
    hostname-char-set and hostname-char-replacement
2018-07-27 13:54:10 +02:00
Thomas Markwalder
94678697e6 [5680] Added a couple more unit test cases 2018-07-27 13:54:10 +02:00
Thomas Markwalder
39ab2f5d15 [5680] Added sanitizeString() function to libutil
configure.ac
    Added logic to detect usable C++11 regex

src/lib/util/strutil.*
    sanitizeString() - new function that replaces all
    occurances of invalid chars in a string with a
    specified replacement

src/lib/util/tests/strutil_unittest.cc
    TEST(StringUtilTest, sanitizeString) - new test
2018-07-27 13:54:10 +02:00
Marcin Siodelski
903e9f3906 [master] Added ChangeLog entry for #5675. 2018-07-24 11:39:30 +02:00
Marcin Siodelski
98a9bd4f67 [master] Merge branch 'trac5675' 2018-07-24 11:38:10 +02:00
Marcin Siodelski
a01ff9967f [5675] Added note to the HA users guide. 2018-07-24 11:01:43 +02:00
Tomek Mrugalski
988ee746a6 [master] ChangeLog updated. 2018-07-23 16:07:03 +02:00
Tomek Mrugalski
66602af46b [github88] Wrapped too long lines. 2018-07-23 16:04:55 +02:00
Tomek Mrugalski
5db1f8ff5f [github88] Removed remaining instances of getLeases6(DUID) 2018-07-23 16:04:30 +02:00
Tomek Mrugalski
61267ca824 [github88] CQL/SQL scripts corrected (unit-tests in src/bin/admin now pass) 2018-07-23 16:03:40 +02:00
Thomas Markwalder
c8d48417fc [5675] Added a "the" to admin guide 2018-07-23 09:21:40 -04:00
Tomek Mrugalski
6afa2376fb [github88] getLeases6(DUID) removed. 2018-07-23 14:36:10 +02:00
Tomek Mrugalski
808ce380a6 [github88] Schema creation scripts fixed. 2018-07-23 14:35:48 +02:00
mayya
2ff46b2dd5 [extend_host_struct] Fix review comments 2018-07-23 13:40:31 +02:00
mayya
3606c3ba9c fixed minor issues 2018-07-23 13:39:16 +02:00
mayya
f30ca44685 review comments 2
review comments 2

test1

fixed unit tests

fixed cassandra

fixed cassandra2
2018-07-23 13:37:01 +02:00
mayya
beeadf3d59 [lib] Address review comments for #83
See  #88 for review comments

modified upgrade files

modified tests
2018-07-23 13:35:50 +02:00
mayya
2090af48c1 [lib] Extend host structure to support auth keys for reconfiguration.
See issue #83
2018-07-23 13:31:03 +02:00
Marcin Siodelski
b6275b52fc [5675] Resolve the problem of no logging paused state in waiting state. 2018-07-19 15:23:51 +02:00
Marcin Siodelski
d925426bad [5675] Corrected documentation of the HA according to recent config change. 2018-07-19 13:45:12 +02:00
Marcin Siodelski
6d3d4c9540 [5675] Corrected unit test about the rebase to latest #5674. 2018-07-18 20:03:35 +02:00
Marcin Siodelski
3a8b318fb0 [5675] Described HA state machine pausing. 2018-07-18 20:03:35 +02:00
Marcin Siodelski
b28ab59286 [5675] Added ha-continue command handler. 2018-07-18 20:03:35 +02:00
Marcin Siodelski
598e73f9fd [5675] Implemented ha-continue command handler. 2018-07-18 20:03:35 +02:00
Marcin Siodelski
2147c6a340 [master] Added ChangeLog for #5674. 2018-07-18 18:58:08 +02:00
Marcin Siodelski
b9f3f082c7 [master] Merge branch 'trac5674' 2018-07-18 18:56:40 +02:00
Marcin Siodelski
a88eb83e9c [5674] Use pausing capability of StateModel in HA library. 2018-07-18 16:51:13 +02:00
Marcin Siodelski
2a727b6e3f [5674] Implemented state model pausing. 2018-07-18 16:17:05 +02:00
Marcin Siodelski
88262cbda3 [5674] Verify that heartbeat is sent when SM is paused. 2018-07-18 13:40:21 +02:00
Marcin Siodelski
327915bc69 [5674] State machine pausing dealt with in transition. 2018-07-18 13:31:10 +02:00
Marcin Siodelski
a5fab941c3 [5674] Added extra level of hierarchy in state machine configuration.
Per review comments.
2018-07-18 12:28:42 +02:00
Tomek Mrugalski
5f53de38d5 [github93] Added changelog entry, AUTHORS updated. trac5694_base 2018-07-12 14:51:56 +02:00