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

1488 Commits

Author SHA1 Message Date
Tomek Mrugalski
bca8fd2331 [4540] Docs, example configs updated 2017-04-13 14:16:25 +02:00
Wlodek Wencel
9e3ca83d07 [v_1_2_0] copy right dates updated 2017-04-12 15:47:26 +02:00
Marcin Siodelski
abf7887ad6 [master] Merge branch 'trac5175' 2017-04-03 19:00:59 +02:00
Tomek Mrugalski
cd497526d5 [master] Merge branch 'trac5132' (flex-id) 2017-04-03 17:06:30 +02:00
Marcin Siodelski
ef65766be5 [5175] Added description of CA in the Developer's Guide. 2017-04-03 15:27:00 +02:00
Tomek Mrugalski
352173f391 [5132] Spelling correction in hooks.xml 2017-04-03 14:25:08 +02:00
Stephen Morris
5e6a6ec702 [5191] Minor update to documentation after review. 2017-04-03 11:53:26 +01:00
Stephen Morris
401a5a5207 [5191] Remove experimental lightweight 4over6 option 2017-03-31 18:17:20 +01:00
Thomas Markwalder
1a4d847ec1 [5175] Fixed some typos minor word-play 2017-03-31 11:29:56 -04:00
Marcin Siodelski
ca5c01ea3b [5175] Added Guide sections about Control Agent. 2017-03-31 12:51:20 +02:00
Francis Dupont
7ed2e66084 [5132] spelling 2017-03-30 21:37:12 +02:00
Tomek Mrugalski
b864228eaa [5132] Flex-id described 2017-03-29 14:43:44 -05:00
Tomek Mrugalski
e2f963bb8c [5132] Boilerplate description for flex_id 2017-03-29 13:20:17 -05:00
Francis Dupont
3ac8487a26 [5150a] Rebased 2017-03-17 06:31:35 +01:00
Francis Dupont
e38e8d974c [102b] rebased 2017-03-17 03:39:22 +01:00
Francis Dupont
d996bf25a1 [3389a] Commit before regen 2017-03-16 23:38:52 +01:00
Francis Dupont
7c349367bb [master] Merged trac5152 (check D2 and CA config) 2017-03-16 16:27:28 +01:00
Tomek Mrugalski
ffb2681173 [5151] Minor corrections after review:
- remove missed debug printout
 - using pretty print to write the file
 - correctly grammar in the guide
2017-03-16 14:25:29 +01:00
Francis Dupont
670b440680 [5151] spelling 2017-03-15 17:59:48 +01:00
Tomek Mrugalski
0975628ecc [5151] Whitespace correction 2017-03-15 17:06:27 +01:00
Tomek Mrugalski
aad3f20355 [5151] New commands documented. 2017-03-15 17:05:48 +01:00
Francis Dupont
85918740ff [5152] Done (at the exception of unit tests) 2017-03-11 12:52:56 +01:00
Francis Dupont
a6d16a9dec [master] revert 2017-03-11 09:21:23 +01:00
Francis Dupont
23319d1c41 [master] Began -t support for D2/CA 2017-03-11 01:31:58 +01:00
Francis Dupont
d12b6f4a6d [master] Finished merge of trac5061 (database port and Cassandra fixes) 2017-03-01 10:11:14 +01:00
Francis Dupont
9a84411922 [5061] different port than standard -> default 2017-03-01 09:56:25 +01:00
Tomek Mrugalski
510bc2c8b1 [5061] User's Guide updated. 2017-02-28 16:42:06 +01:00
Tomek Mrugalski
548d397fe5 [master] Corrected mistake in host reservation on master. 2017-02-23 15:44:05 +01:00
Francis Dupont
d821390cea [3770_rebase] untabified 2017-02-16 13:12:33 +01:00
Tomek Mrugalski
4a5ab8afd6 [3770_rebase] User's guide updated. 2017-02-16 11:42:46 +01:00
Francis Dupont
60feddc3b5 [4070] Began tuple code 2017-02-14 16:11:13 +01:00
Francis Dupont
d51416997e [master] Finished merge of trac5105 (commas in option string data) 2017-02-10 19:36:39 +01:00
Tomek Mrugalski
27956d95a3 [master] Merge branch github47 (typos)
# Conflicts:
#	src/bin/dhcp4/json_config_parser.cc
#	src/bin/dhcp4/tests/fqdn_unittest.cc
#	src/bin/dhcp6/dhcp6_srv.h
#	src/bin/dhcp6/tests/fqdn_unittest.cc
#	src/lib/config/command_mgr.h
#	src/lib/dhcpsrv/alloc_engine.h
#	src/lib/dhcpsrv/parsers/client_class_def_parser.h
#	src/lib/dhcpsrv/parsers/dbaccess_parser.cc
#	src/lib/dhcpsrv/parsers/dhcp_parsers.cc
#	src/lib/dhcpsrv/parsers/dhcp_parsers.h
#	src/lib/dhcpsrv/srv_config.h
#	src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
#	src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
#	src/lib/eval/eval_context.h
#	src/lib/hooks/callout_manager.cc
#	src/lib/testutils/dhcp_test_lib.sh.in
2017-02-10 18:47:03 +01:00
Tomek Mrugalski
7e99c565c0 [5131] User's Guide updated. 2017-02-09 15:48:30 +01:00
Francis Dupont
6252fce364 [5105] Fixed the \\ in tokens and improved doc (guides and examples) 2017-02-06 00:53:58 +01:00
Tomek Mrugalski
3201a422f0 [5105] Updated examples and User's Guide to match double escapes. 2017-02-02 13:46:07 +01:00
Tomek Mrugalski
c33bbfc418 [5105] User's Guide updated. 2017-02-01 21:08:26 +01:00
Francis Dupont
54361a800f [master] spelling 2017-01-24 11:29:22 +01:00
Francis Dupont
71d97ff0fc [master] spelling 2017-01-24 11:19:53 +01:00
Francis Dupont
290f65dee8 [master] Fixed system_messages path (cf github PR#33) 2017-01-23 23:56:37 +01:00
Francis Dupont
decb410509 [master] Finished merge of trac5033 (migrate D2client) 2017-01-16 13:49:43 +01:00
Andrei Pavel
42de10a2b4 Merge branch 'cassandra-update' into cassandra-host-data-source 2017-01-12 18:05:32 +02:00
Andrei Pavel
444aab4c51 Documented Cassandra configuration 2017-01-12 18:04:14 +02:00
Thomas Markwalder
9b20235ebf [5033] - kea-dhcp6 now uses new D2ClientConfigParser
src/bin/dhcp6/json_config_parser.cc
        createGlobalDhcp6ConfigParser()
        - added clause to invoke new D2ClientConfigParser to
        set staging config
        - added clause to apply staged D2ClientConfig (formerly done
        by parser commit

    src/bin/dhcp6/parser_context.h
    src/bin/dhcp6/parser_context.cc
        aded PARSER_DHCP_DDNS context

    src/bin/dhcp4/simple_parser6.h
    src/bin/dhcp4/simple_parser6.cc
        defined SimpleParser6::D2_CLIENT_CONFIG_DEFAULTS
        SimpleParser6::setAllDefaults() - now sets defaults
        for D2ClientConfig

    src/bin/dhcp6/tests/d2_unittest.cc
    src/bin/dhcp6/tests/fqdn_unittest.cc
        Updated replace-name-mode values and tests
        (true/false no longer supported)

    doc/guide/dhcp6-srv.xml
        Updated, replace-client-name no longer accepts booleans
2017-01-11 15:22:30 -05:00
Thomas Markwalder
85640c193b [5033] - migrated D2ClientConfigParser to SimpleParser, kea-dhcp4 uses it
src/bin/dhcp4/json_config_parser.cc
    createGlobalDhcp4ConfigParser()
    - added clause to invoke new D2ClientConfigParser to
    set staging config
    - added clause to apply staged D2ClientConfig (formerly done
    by parser commit

src/bin/dhcp4/parser_context.h
src/bin/dhcp4/parser_context.cc
    aded PARSER_DHCP_DDNS context

src/bin/dhcp4/simple_parser4.h
src/bin/dhcp4/simple_parser4.cc
    defined SimpleParser4::D2_CLIENT_CONFIG_DEFAULTS
    SimpleParser4::setAllDefaults() - now sets defaults
    for D2ClientConfig

src/bin/dhcp4/tests/d2_unittest.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
    Updated replace-name-mode values (true/false no longer supported)

src/lib/dhcpsrv/parsers/dhcp_parsers.h
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
    D2ClientConfig now derives from SimpleParser

src/lib/dhcpsrv/srv_config.h
src/lib/dhcpsrv/srv_config.cc
    Added a D2ClientConfigPtr member to SrvConfig.

src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
    Updated tests to set D2 client config defaults

doc/guide/dhcp4-srv.xml
    Updated, replace-client-name no longer accepts booleans
2017-01-11 13:47:39 -05:00
Andrei Pavel
8c71bbbc9d Cassandra update
Replaced unrecommended backticks with $() in cql_version() in bash scripts.

*_execute() and *_execute_script() functions from src/bin/admin/admin-utils.sh now pass the parameters to the underlying backend binary whenever they are given rather than when there are 2 or more.

Corrected cql_version() return error in src/bin/admin/admin-utils.sh.

Removed redundant "USE" from cql_init() in src/bin/admin/kea-admin.in.

Inserted a newline in src/bin/admin/tests/Makefile.am to separate unrelated targets.

Style changes in cql_*_test() functions in src/bin/admin/tests/cql_tests.sh.in.

src/bin/admin/tests/dhcpdb_create_1.0.cql:
    "perfromance" typo
    Added comment headers
    Added index on expire since it is used in WHERE clauses (further performance testing may be required)
    Removed dhcp4_options and dhcp6_options table since they are not required for Cassandra

Added DROP INDEX in src/share/database/scripts/cql/dhcpdb_drop.cql.

Added sql_common.h
Added cql_exchange.h and cql_exchange.cc which mediate communication with Cassandra.
Added cql_lease_mgr.h and cql_lease_mgr.cc

Parameterized reconnect-wait-time, connect-timeout, request-timeout, tcp-keepalive, tcp-nodelay for Cassandra in kea.conf. Changes are in src/lib/dhcpsrv/cql_connection.cc and src/lib/dhcpsrv/parsers/dbaccess_parser.cc.

Reformated x != NULL into !x as specified in the Kea style guidelines

src/lib/dhcpsrv/cql_connection.cc:
    Added range check for port
    Added CqlConnection:setConsistency
    Added CqlConnection::startTransaction  which is a noop
    Added CqlTransaction method implementations.
    Corrected ending brace of namespace declaration, it doesn't need semicolon.

src/lib/dhcpsrv/cql_connection.h:
    Added explicit on CqlConnection constructor. Unlikely that this class will ever be derived, but it's good practice.
    Changed some comments.
    Added CqlTransaction class definition.

src/lib/dhcpsrv/cql_lease_mgr.cc:
    Formatted the entire code.
    Changed data types to cass_ types.

Added some log messages.

Moved structs, enums and typedefs from src/lib/dhcpsrv/lease_mgr.h to src/lib/dhcpsrv/sql_common.h

Added some missing tests in src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
2017-01-11 14:14:43 +02:00
Tomek Mrugalski
f1c9dee093 [master] Merge branch 'trac5032' (mac-sources, control-socket, relay parsers)
# Conflicts:
#	src/lib/testutils/io_utils.cc
#	src/lib/testutils/io_utils.h
2017-01-05 15:42:39 +01:00
Tomek Mrugalski
b9c2085a5d [5032] empty "relay" structure is no longer allowed. 2017-01-05 14:18:23 +01:00
Thomas Markwalder
4afbdcf89c [master] Implement set-config command in kea-dhcp4/6
Merges in branch 'trac5046'
2017-01-04 15:46:12 -05:00
Tomek Mrugalski
4b8ab3bb78 [5032] mac-sources, control-socket and relay-info parsers converted
- The parsers converted to SimpleParser
 - Unit-tests updated, cleaned up and corrected
 - Updated examples to actually use the information
 - Updated User's Guide that the empty mac-sources is not allowed
2017-01-04 13:09:28 +01:00