Marcin Siodelski
63ee47f863
[ #1468 ] Added ChangeLog for #1468
2020-10-13 13:25:17 +02:00
Marcin Siodelski
b621b48555
[ #1468 ] Fixed compilation of cfg_db_access tests
2020-10-13 13:22:27 +02:00
Marcin Siodelski
caac37eaba
[ #1428 ] Addressed review comments
2020-10-12 19:46:44 +02:00
Marcin Siodelski
5a1a92f97b
[ #1428 ] Added ChangeLog for #1428
2020-10-12 19:46:44 +02:00
Marcin Siodelski
e448cb7432
[ #1428 ] Updated HR for DHCPv6
...
Described the use of ip-reservations-unique global parameter. In addition,
the corresponding DHCPv4 section was slightly updated.
2020-10-12 19:46:44 +02:00
Marcin Siodelski
7dbe5591d8
[ #1428 ] Updated ARM for DHCPv4
...
Added a section to the DHCPv4 host reservations section which describes
how to enable using multiple reservations for the same IP address.
2020-10-12 19:46:44 +02:00
Andrei Pavel
f0d1b03b6b
[ #1451 ] allow linking with libgtest.so
2020-10-12 16:59:09 +03:00
Francis Dupont
6f613059ea
[ #1385 ] Wrapped new ChangeLog entry (2)
2020-10-09 19:46:37 +02:00
Francis Dupont
1220daa4a4
[ #1385 ] Wrapped new ChangeLog entry
2020-10-09 19:32:19 +02:00
Francis Dupont
ab11bd4c4f
[ #1385 ] Regen flex/bison
2020-10-09 14:55:44 +00:00
Francis Dupont
ea0fba2999
[ #1385 ] Regen flex/bison
2020-10-09 16:55:21 +02:00
Thomas Markwalder
fbc4d1ecaf
[ #1385 ] Updated ARM and added a ChangeLog
2020-10-09 16:51:28 +02:00
Thomas Markwalder
eb68fc3b81
[ #1385 ] kea-dhcp6 supports ddns-update-on-renew
...
(Parsers need to be regenerated)
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/json_config_parser.cc
added ddns-update-on-renew parameter
src/bin/dhcp6/dhcp6_srv.*
Dhcpv4Srv::createNameChangeRequests() - modified to
use ddns-update-on-renew in logic
src/bin/dhcp6/tests/fqdn_unittest.cc
TEST_F(FqdnDhcpv6SrvTest, processRequestRenew) - new test
src/bin/dhcp6/tests/get_config_unittest.cc
Updated
doc/examples/kea4/all-keys.json
doc/examples/kea6/all-keys.json
added ddns-update-on-renew parameter
2020-10-09 16:51:28 +02:00
Thomas Markwalder
3a4455a4a7
[ #1385 ] kea-dhcp4 supporst ddns-update-on-renew
...
(Parsers need to be regenerated)
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
added ddns-update-on-renew parameter
src/bin/dhcp4/dhcp4_srv.*
Dhcpv4Srv::createNameChangeRequests() - added DdnsParams
argument and modified to use ddns-update-on-renew in logic
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, createNameChangeRequestsUpdateOnRenew)
- new test
src/bin/dhcp4/tests/get_config_unittest.cc
Updated
src/lib/dhcpsrv/network.*
src/lib/dhcpsrv/parsers/base_network_parser.cc
src/lib/dhcpsrv/parsers/simple_parser4.cc
src/lib/dhcpsrv/parsers/simple_parser6.cc
src/lib/dhcpsrv/srv_config.*
Added ddns-update-on-renew
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
src/lib/dhcpsrv/tests/network_unittest.cc
src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
src/lib/dhcpsrv/tests/shared_network_unittest.cc
src/lib/dhcpsrv/tests/srv_config_unittest.cc
src/lib/dhcpsrv/tests/subnet_unittest.cc
updated tests
2020-10-09 16:51:28 +02:00
Francis Dupont
d033f3f84f
[ #1464 ] Addressed comments
2020-10-09 14:11:16 +00:00
Francis Dupont
f1080950c2
[ #1464 ] Added RAII tool to fill holes
2020-10-09 14:11:16 +00:00
Marcin Siodelski
85cab65b44
[ #1428 ] Make test class destructor virtual
...
Also, committed regenerated dhcpsrv_messages.[cc|h].
2020-10-09 15:51:01 +02:00
Marcin Siodelski
adcc94edd8
[ #1428 ] Addressed review comments
...
- Note that IP reservations are unique with a subnet in several places
- Put back const in createManagers function
- Aligned log arguments.
- Added missing commentary in v6 config fetch routine.
2020-10-09 13:02:02 +02:00
Francis Dupont
3e6e838547
[ #1428 ] Regen flex/bison
2020-10-08 13:47:00 +00:00
Marcin Siodelski
dffa0cc71e
[ #1428 ] Added ip-reservations-unique to all-keys
2020-10-08 15:44:39 +02:00
Marcin Siodelski
927977c7a1
[ #1428 ] Added warn when switch ip-reservations-unique
2020-10-08 15:44:39 +02:00
Marcin Siodelski
3ef7ab5be9
[ #1428 ] Regenerated parsers for DHCP
2020-10-08 15:44:39 +02:00
Marcin Siodelski
4b72f6c4ea
[ #1428 ] Setting ip-reservations-unique via CB
2020-10-08 15:44:39 +02:00
Marcin Siodelski
a94c45c9cc
[ #1428 ] Extend createManagers function tests
...
Extended the tests of the createManagers function which instantiates
configured host backends. It now checks that it is possible to use
ip-reservations-unique for MySQL and Postgres but this setting is refused
for CQL.
2020-10-08 15:44:39 +02:00
Marcin Siodelski
5d570cf077
[ #1428 ] Use ip-reservations-unique in alloc engine
2020-10-08 15:44:39 +02:00
Marcin Siodelski
8689ad9414
[ #1428 ] Configure unique IP in HostMgr
...
The CfgDbAccess class configures HostMgr according to the setting of the
ip-reservations-unique.
2020-10-08 15:44:39 +02:00
Marcin Siodelski
ab278ed455
[ #1428 ] Basic support for ip-reservations-unique
...
The DHCPv4 and DHCPv6 servers accept ip-reservations-unique configuration
for IP addresses specified in the configuration file.
2020-10-08 15:44:39 +02:00
Marcin Siodelski
7ccddf643d
[ #1428 ] Added ip-reservations-unique parameter
...
Also regenerated parsers.
2020-10-08 15:44:39 +02:00
Tomek Mrugalski
a8c3d73d33
[ #1441 ] AUTHORS file updated
2020-10-07 10:49:20 +02:00
Andrei Pavel
1ddaaa31b8
[ #1441 ] add ChangeLog entry
2020-10-05 17:52:27 +03:00
Andrei Pavel
13c20b6f28
[ #1441 ] document various MAC formats for RADIUS
2020-10-05 17:52:27 +03:00
Andrei Pavel
b18f15dc5e
[ #1441 ] fix invalid ARM mysql code-block
...
not getting validated by pygmentize 2.7.1 or higher versions
2020-10-05 17:52:27 +03:00
Marcin Siodelski
90cfc2477a
[ #1428 ] Fixed nits as a result of review
2020-10-05 13:14:58 +00:00
Marcin Siodelski
91f1d20e64
[ #1428 ] Removed tests dedicated for cache
...
Since we have removed support for getAllX(subnet_id, address) the
tests that validate them were also removed. These tests were recently
added when there was a concept that getAllX behaves the same as getX,
but that is no longer true.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
653b76c3f9
[ #1428 ] Renamed some unit tests
...
As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
bc1456a487
[ #1428 ] Copied missing PgSQL host tests
2020-10-05 13:14:58 +00:00
Marcin Siodelski
3ee729e933
[ #1428 ] Removed spurious blank line
...
As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
d346cdc250
[ #1428 ] Fixed comment in a new test
...
As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
e75cc9ea42
[ #1428 ] Modified query to use lower case table name
...
As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
1900463d4a
[ #1428 ] Added missing comment
...
As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
7041e0b50f
[ #1428 ] Final code cleanup
...
- Removed caching from getAllX functions in HostMgr
- Renamed setIPReservationUnique to setIPReservationsUnique
2020-10-05 13:14:58 +00:00
Marcin Siodelski
4ded4f9ad9
[ #1428 ] Extended host tests
...
The tests getting host by subnet_id/address were now extended to also
use the getAll4 and getAll6 variants.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
c6a3f83881
[ #1428 ] Fixed read only tests in MySQL and PgSQL
...
Per review comments.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
57ed86aa9e
[ #1428 ] Added override in CQL backend
2020-10-05 13:14:58 +00:00
Marcin Siodelski
d55cf6aaad
[ #1428 ] Set unique hosts in backend tests
...
Per review comments.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
e5f0ed4cb9
[ #1428 ] Renamed test function
...
testAddDuplicate4 to testAddDuplicateIPv4 per review comments.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
84d4baa22a
[ #1428 ] Removed spurious blank lines
...
As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
27db071b3c
[ #1428 ] Improve non-unique reservations tests
...
The tests now verify that returned hosts are different. Also added a test
for prefixes. As a result of review.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
a92442f960
[ #1428 ] Fixed comments in pgsql hosts
...
Addressed minor comments in PgSQL host data source and added LIMIT 1 to
optimize a query.
2020-10-05 13:14:58 +00:00
Marcin Siodelski
62b831300e
[ #1428 ] Fixed line break
...
As a result of review.
2020-10-05 13:14:58 +00:00