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

26283 Commits

Author SHA1 Message Date
Thomas Markwalder
a662ab45d9 [5586] MySQL shared leases stats implemented
src/share/database/scripts/mysql/dhcpdb_create.mysql
    src/share/database/scripts/mysql/dhcpdb_drop.mysql
    src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
        Added MySQL v4/6 stat tables and triggers

    src/lib/dhcpsrv/memfile_lease_mgr.cc
        Suppress output of of rows with count values of 0

    src/lib/dhcpsrv/mysql_lease_mgr.*
        Added v4/v6 lease stat SQL statements

        MySqlLeaseStatsQuery
        - Added ctor variants that accomodate selection criteria
        - Modified start() to handle three variants of selection

        MySqlLeaseMgr
        - Added start***Query4/6 variants

    src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
        Added tests:
        - TEST_F(MySqlLeaseMgrTest, leaseStatsQuery4)
        - TEST_F(MySqlLeaseMgrTest, leaseStatsQuery6)
2018-05-02 13:36:02 -04:00
Thomas Markwalder
6c3c1afdec [master] Shared lease stats infrastructure and MemfileLeaseMgr implementation
Merges branch 'trac5585'
trac5488_base trac5609_base
2018-05-02 11:17:20 -04:00
Marcin Siodelski
2b917f9fd7 [5585] Minor fixes as a result of the review.
- Adjusted accessors to fit the coding style
- Typos corrected
- Passing objects by reference to avoid cppcheck complaints
2018-05-02 16:21:47 +02:00
Marcin Siodelski
992ded4a26 [master] Added ChangeLog entry for #5458. 2018-05-02 15:17:53 +02:00
Marcin Siodelski
04d6fb0a0a [master] Merge branch 'trac5458a' 2018-05-02 15:14:44 +02:00
Francis Dupont
8bd5820ad6 [5458a] Added solicit with rapid-commit in to be tested comments 2018-05-01 14:43:39 +02:00
Marcin Siodelski
5a1f60fc6b [5458] CtrlDhcpv6Srv now passes network_state to dhcp6_srv_configured co. 2018-04-30 17:17:10 +02:00
Thomas Markwalder
85cfee8021 [master] Added ChangeLog entry 1391 for #5535 trac5605a_base trac5549_base 2018-04-27 10:03:33 -04:00
Thomas Markwalder
f4601abdb6 [master] kea-dhpc4/6 now support relay ip-addresses
Merges in branch 'trac5535'
2018-04-27 10:00:59 -04:00
Tomek Mrugalski
d0af07334b [5535] Minor changes after review:
- improved tests for selectSubnet
 - improved hadAddresses
 - reinstantiated missing unit-test description
2018-04-27 14:24:37 +01:00
Marcin Siodelski
db448f8014 [5458] Removed deleted_leases from ClientContext6.
Also, declined lease is treated as new lease when calling
leases6_committed hook.
2018-04-27 15:02:25 +02:00
Marcin Siodelski
eb18195205 [5458] Updated leases6_committed doc to include Rapid Commit case. 2018-04-27 13:38:32 +02:00
Marcin Siodelski
050f91156f [5458] Removed ClientContext6::committed_ flag. 2018-04-27 13:35:24 +02:00
Marcin Siodelski
78ad010b57 [5458] Eliminated extraneous Pkt6Ptr arguments in calls to processX funcs. 2018-04-27 11:52:45 +02:00
Marcin Siodelski
0b02a155dd [5458] Added a comment for processDhcpv4Query that it doesn't throw. 2018-04-27 11:25:06 +02:00
Marcin Siodelski
5bf8dada8e [5458] Make sanityCheck call compacted. 2018-04-27 11:20:36 +02:00
Marcin Siodelski
9b218a7cf3 [5458] Dhcp6Hooks declaration is back in anonymous namespace. 2018-04-27 11:06:23 +02:00
Marcin Siodelski
5da4c91b0c [5458] Eliminated new unit test failure due to issues with DUID file access 2018-04-27 11:02:19 +02:00
Tomek Mrugalski
d8f02e1656 [master] ChangeLog updated. 2018-04-27 07:23:52 +01:00
Tomek Mrugalski
c73337a8ec [5538] User's guide corrections, makefile extended 2018-04-27 07:19:05 +01:00
Tomek Mrugalski
9ac3bf4394 [5538] Example config updated. 2018-04-27 07:16:30 +01:00
Tomek Mrugalski
4ac1d71e63 [5538] Radius example comments updated. 2018-04-27 07:15:16 +01:00
Francis Dupont
3eea2b839e [5538] Added secrets 2018-04-27 01:13:12 +02:00
Francis Dupont
4342fcb9cc [5538] Merge branch 'trac5538' of ssh://git.kea.isc.org/git/kea into trac5538 2018-04-27 00:54:11 +02:00
Francis Dupont
ec6378b097 [5538] Added radius.json tentative RADIUS config 2018-04-27 00:53:17 +02:00
Tomek Mrugalski
2ef6c2324b [5538] The hosts-databases entries are not needed. 2018-04-26 22:58:06 +01:00
Tomek Mrugalski
654c47b809 [5538] Radius docs updated and corrected. 2018-04-26 22:22:59 +01:00
Tomek Mrugalski
5c86919089 [5538] host-cache documentation written 2018-04-26 22:22:24 +01:00
Thomas Markwalder
eb30390f47 [5535] RelayInfo parser emits ip-address deprecation message 2018-04-26 15:13:53 -04:00
Tomek Mrugalski
e74afe42c0 [5538] RADIUS hook documentation added. 2018-04-26 20:11:22 +01:00
Thomas Markwalder
d4c3cac23e [5535] Updated admin guide 2018-04-26 14:42:38 -04:00
Thomas Markwalder
e564f4daac [5535] kea-dhcp6 parsing now supports relay "ip-addresses"
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
    Modified to support "ip-address" and
    "ip-addresses" under "relay"

src/bin/dhcp6/tests/get_config_unittest.cc
    Updated per process.

src/bin/dhcp6/tests/config_parser_unittest.cc
    void checkResult() - modified to output parsing error text

    TEST_F(Dhcp6ParserTest, subnetRelayInfo)
    TEST_F(Dhcp6ParserTest, sharedNetworksDerive)
    - updated to use new Network methods

    TEST_F(Dhcp6ParserTest, subnetRelayInfoList) - new test
    to verify a list of addresses in relay
2018-04-26 14:24:46 -04:00
Thomas Markwalder
c71f3d383f [5535] kea-dhcp4 parsing now supports relay "ip-addresses"
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Modified to support "ip-address" and
    "ip-addresses" under "relay"

src/bin/dhcp4/tests/get_config_unittest.cc
    Updated per process.

src/bin/dhcp4/tests/config_parser_unittest.cc
    void checkResult() - modified to output parsing error text

    TEST_F(Dhcp4ParserTest, subnetRelayInfo)
    TEST_F(Dhcp4ParserTest, classifySubnets)
    - updated to use new Network methods

    TEST_F(Dhcp4ParserTest, subnetRelayInfoList) - new test
    to verify a list of addresses in relay
2018-04-26 13:54:45 -04:00
Thomas Markwalder
0e5e017d4b [5535] RelayInfo parsing handles both ip-address and ip-addresses
src/lib/dhcpsrv/parsers/dhcp_parsers.*
    RelayInfoParser::parse() - reworked to support either
    ip-address or ip-addresses

    RelayInfoParser::addAddress() - new parser helper method

src/lib/dhcpsrv/parsers/shared_network_parser.cc
    SharedNetwork4Parser::parse()
    SharedNetwork6Parser::parse()
    - both now parse "relay" element (was missing)

src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
    Modified to support testing "relay" element parsing
    Added new tests:
        TEST_F(SharedNetwork4ParserTest, relayInfoTests)
        TEST_F(SharedNetwork6ParserTest, relayInfoTests)
2018-04-26 13:20:39 -04:00
Francis Dupont
4b7838c57c [5458a] Merge branch 'trac5458a' of ssh://git.kea.isc.org/git/kea into trac5458a 2018-04-26 16:48:02 +02:00
Francis Dupont
00af3a4ed4 [5458a] Improved tests (with the plan for next steps) 2018-04-26 16:47:05 +02:00
Thomas Markwalder
9e362be064 [5535] dhcpsrv now supports multiple relay addresses in RelayInfo
src/lib/dhcpsrv/network.*
    Network::RelayInfo
    - modified to support a list of IP addresses
    - added methods:
        addAddress(const asiolink::IOAddress& addr)
        bool hasAddresses()
        bool containsAddress(const asiolink::IOAddress& addr)
        +const IOAddressList& getAddresses()

    Network
    - added wrapper methods for convenience:
        addRelayAddress(const asiolink::IOAddress& addr)
        bool hasRelays()
        bool hasRelayAddress(const asiolink::IOAddress& addr)
        const IOAddressList& getRelayAddresses()

    - toElement() - modified to output ip-addresses list

    Updated the following accordingly:
        src/lib/dhcpsrv/cfg_subnets4.cc
        src/lib/dhcpsrv/cfg_subnets6.cc
        src/lib/dhcpsrv/parsers/dhcp_parsers.cc
        src/lib/dhcpsrv/subnet.cc
        src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
        src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
        src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
        src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc
        src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
        src/lib/dhcpsrv/tests/shared_network_unittest.cc
        src/lib/dhcpsrv/tests/subnet_unittest.cc
2018-04-25 14:47:21 -04:00
Francis Dupont
a5a992e09d [master] Updated git hash 2018-04-25 20:35:08 +02:00
Francis Dupont
3bb521f6ec [master] Merged trac5530a doc 2018-04-25 20:34:16 +02:00
Francis Dupont
db9802572c [master] Finished merge of trac5530a (Radius accounting / dhcp6 srv configured) 2018-04-25 20:32:39 +02:00
Francis Dupont
7e8984aad7 [master] Merged trac5530a (Radius accounting / dhcp6 srv configured 2018-04-25 20:29:33 +02:00
Marcin Siodelski
24ab3fd327 [5458] Corrections in the descriptions of new DHCPv6 server callouts. 2018-04-25 19:46:42 +02:00
Francis Dupont
89d8d0bce9 [5458a] Checkpoint: code and main tests done, todo prefix and all v6 corner cases 2018-04-25 06:14:22 +02:00
Tomek Mrugalski
2cecb3216c [5530a] Documentation for dhcp6_srv_configured added. 2018-04-25 01:59:39 +01:00
Francis Dupont
afa4ef5d0c [5458a] Checkpoint: working on tests 2018-04-23 17:09:08 +02:00
Thomas Markwalder
c494c28cc9 [master] Added ChangeLog entry 1388 for #5567 2018-04-23 10:08:27 -04:00
Thomas Markwalder
5376106976 [master] Add backward compatible support for --with-dhcp-<mysql/pgsql>
Merges in branch 'trac5567'
2018-04-23 10:06:38 -04:00
Thomas Markwalder
207c8255a4 [master] Added ChangeLog entry 1387 for #5115. 2018-04-23 09:41:52 -04:00
Thomas Markwalder
c3ba89c568 [master] Remove unecessary -r command line constraints from perfdhcp
Merges in branch 'trac5115'
2018-04-23 09:39:20 -04:00
Tomek Mrugalski
b7c85ff8b4 [5567] --with-pgsql,--with-mysql are now more robust 2018-04-23 11:22:07 +01:00