summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/cfg_hosts.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [#2723] Removed checkFrancis Dupont2023-02-071-26/+1
|
* [#1428] Final code cleanupMarcin Siodelski2020-10-051-1/+1
| | | | | - Removed caching from getAllX functions in HostMgr - Renamed setIPReservationUnique to setIPReservationsUnique
* [#1428] Calls to fetch many hosts by id/addressMarcin Siodelski2020-10-051-0/+32
| | | | | The new calls have been added to the host backends to retrieve multiple hosts by subnet_id and address.
* [#1428] Allow non-unique IPs in MySQL and PgSQLMarcin Siodelski2020-10-051-10/+19
| | | | | | | | Introduced new host API function which allows for configuring selected backends to accept non-unique IP reservations for multiple hosts. Support for it was added in MySQL, Postgres and Kea config file. It is not supported in Cassandra. New migrations for MySQL and Postgres have been created.
* [#1163] Checkpoint: updated APIFrancis Dupont2020-09-221-1/+87
|
* [392-search-of-reservations-by-hostname] Checkpoint: did tests, todo doc and ↵Francis Dupont2019-10-151-2/+4
| | | | hook
* [392-search-of-reservations-by-hostname] Checkpont: add new methods - tests ↵Francis Dupont2019-10-151-0/+158
| | | | to write
* [313-return-a-list-of-all-reservations-by-subnet-id] Added getPage[46]Francis Dupont2019-01-291-4/+147
|
* [313-return-a-list-of-all-reservations-by-subnet-id] Added getAll[46] by ↵Francis Dupont2019-01-291-2/+95
| | | | subnet - checkpoint of the day
* [#158,!136] Added ability to remove all hosts for subnet id.Marcin Siodelski2018-11-261-0/+30
|
* [5704] host backends and kea-dhcp4/6 support global HR storageThomas Markwalder2018-08-071-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* [5563] Changes done and compileFrancis Dupont2018-05-241-133/+37
|
* [5208a] unused parameter warnings removedTomek Mrugalski2017-04-241-7/+9
|
* [5208a] delete methods implemented in host data sourcesTomek Mrugalski2017-04-221-0/+25
|
* [5208a] toElement() moved from CfgHosts to HostTomek Mrugalski2017-04-221-108/+10
|
* [5207] Reverted part of earlier comments, add4/add6 description updatedTomek Mrugalski2017-04-111-16/+0
|
* [5207] extra checks added in add4(), add6()Tomek Mrugalski2017-04-101-7/+14
|
* [5207] Improved duplication checks when adding reservationsTomek Mrugalski2017-04-101-3/+27
|
* [5132] Changes after review (comment #9):Tomek Mrugalski2017-04-031-0/+4
| | | | | | | | - new tests added - needed => required - spaced added where needed - CfgHosts::toElement6 updated -
* [5132] parser updated, unit-tests implementedTomek2017-03-291-1/+5
|
* [fdunparse2] Snapshot for 4o6-subnet fixFrancis Dupont2017-03-071-1/+146
|
* [4765] Client classes in HR can be specified in configuration file.Marcin Siodelski2016-09-011-1/+3
|
* [4552] Added support for DHCPv4 message fields into config parser.Marcin Siodelski2016-08-231-2/+5
|
* [4499] Removed inefficient conversion of the host identifier to text.Marcin Siodelski2016-05-171-23/+5
|
* [4302] Use new functions to retrieve reservations by any identifier.Marcin Siodelski2016-03-291-22/+49
|
* [4302] Refactored host data source classes.Marcin Siodelski2016-03-241-38/+150
| | | | | | The updated API exposes functions which retrieve hosts by any identifier and identifier type, rather than DUID or HW address.
* [4319] Extend host reservation parser to parse options.Marcin Siodelski2016-03-151-2/+5
|
* [4236] Replaced license text in all files containing it.Marcin Siodelski2015-12-161-11/+3
|
* [4024] Fixed c++11 detected errorsFrancis Dupont2015-08-271-1/+1
|
* [3652] handle the IPv4 address already reserved caseFrancis Dupont2015-05-211-0/+12
|
* [master] remove '#include <config.h' from include files (#3782)Francis Dupont2015-04-181-0/+1
|
* [3699] Addressed review comments.Marcin Siodelski2015-04-171-1/+8
|
* [3699] Added traces for cases when no host is found.Marcin Siodelski2015-04-171-3/+10
|
* [3699] Added data tracing in the CfgHosts class.Marcin Siodelski2015-04-161-0/+58
|
* [3699] Added more traces to the CfgHosts class.Marcin Siodelski2015-04-161-1/+28
|
* [3699] Added trace messages to the CfgHosts class.Marcin Siodelski2015-04-161-23/+67
|
* [master] Compilation fix for NetBSD6 after #3563Tomek Mrugalski2015-02-061-1/+2
| | | | - See 3643, comment 5 for explanation
* [3563] Copyright years updated, minor cosmetics.Tomek Mrugalski2015-02-031-2/+2
|
* [3563] CfgHosts::get6(subnet_id, addr) implemented, with unit-tests.Tomek Mrugalski2015-01-201-36/+82
|
* [3563] HostContainer6 definitions added.Tomek Mrugalski2015-01-201-4/+95
|
* [master] Merge branch 'trac3564'Marcin Siodelski2014-12-221-4/+40
|\
| * [3564] Resolve conflicts with the reserved addresses in allocation engine.Marcin Siodelski2014-12-111-4/+40
| |
* | [3643] Fix problem on Ubuntu and NetBSD BuildsStephen Morris2014-12-151-5/+5
|/ | | | | | | | | Both Ubuntu and NetBSD builds fail because of what appears to be an error trying to the use "equal_range" method of one of the classes associated with the Boost multi-index container. The cause is uncertain - other systems build successfully, so the problem might no lie here, e.g. it could be in the compiler. This fix attempts to side-step the problem by modifying the affected files so as not to use this method.
* [master] Merge branch 'trac3628'Marcin Siodelski2014-12-101-1/+21
|\ | | | | | | | | | | | | Conflicts: src/lib/dhcpsrv/Makefile.am src/lib/dhcpsrv/cfg_hosts.cc src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc
| * [3628] Addressed review comments.Marcin Siodelski2014-12-091-3/+22
| | | | | | | | | | | | One of the major changes was to eliminate possibility of defining the dead reservation: neither hostname nor IP address reserved and covering it with suitable unit tests.
* | [3561] Implemented basic host manager gathering hosts from the config.Marcin Siodelski2014-12-011-4/+10
|/
* [3562] Addressed review comments.Marcin Siodelski2014-11-041-4/+8
|
* [3562] Implemented storage class for Hosts.Marcin Siodelski2014-10-231-0/+190