]> git.ipfire.org Git - thirdparty/kea.git/commit
Cassandra Host Data Source
authorAndrei Pavel <andrei.pavel@qualitance.com>
Wed, 14 Dec 2016 13:54:32 +0000 (15:54 +0200)
committerAndrei Pavel <andrei.pavel@qualitance.com>
Wed, 14 Dec 2016 13:54:32 +0000 (15:54 +0200)
commit6bc15852c816d28cd4e7a7cbd7a6beba0761365d
tree2f334f3a0f70ee00138fd01000ef729ec7986794
parent50fd79039dc7cb2fe25654c149fe43ecf91e1b57
Cassandra Host Data Source

Added src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh to include host_reservations table in Cassandra.
Updated documentation to indicate that Cassandra now supports host reservations.
Added src/lib/dhcpsrv/cql_host_data_source.cc and cql_host_data_source.h.
Fixed a bug in CfgOption::mergeInternal() where formatted_value_ was not taken into consideration when merging, this is needed for merging the denormalized results on host retrieval in Cassandra. The method is not used elsewhere so there is no regression impact.
Added Cassandra support in HostDataSourceFactory.
Implemented a todo in mysql_host_data_source.cc
Added cql_host_data_source_unittest.cc
Functionality that Cassandra is not capable of like ORDER BY clause is
adjusted in generic_host_data_source_unittest.cc.
19 files changed:
doc/guide/admin.xml
doc/guide/dhcp4-srv.xml
src/lib/dhcpsrv/Makefile.am
src/lib/dhcpsrv/cfg_option.cc
src/lib/dhcpsrv/cql_connection.h
src/lib/dhcpsrv/cql_host_data_source.cc [new file with mode: 0644]
src/lib/dhcpsrv/cql_host_data_source.h [new file with mode: 0644]
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/host.h
src/lib/dhcpsrv/host_data_source_factory.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
src/lib/dhcpsrv/tests/Makefile.am
src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc [new file with mode: 0644]
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.h
src/share/database/scripts/cql/.gitignore
src/share/database/scripts/cql/dhcpdb_create.cql
src/share/database/scripts/cql/dhcpdb_drop.cql
src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh.in [new file with mode: 0644]