1. 18 Aug, 2017 1 commit
    • Andrei Pavel's avatar
      Google Benchmark support · 29440ea0
      Andrei Pavel authored
      ReentrantSetUp* methods are needed because you can't control iteration
      count
      Usage:
        ./configure --with-benchmark
            OR
        ./configure --with-benchmark-source=/path/to/benchmark/src
      
        make
        cd src/lib/dhcpsrv/benchmarks
      
        ./run-benchmarks
            OR
        ./run-benchmarks --benchmark_filter="RegExP*"
      29440ea0
  2. 15 Aug, 2017 2 commits
  3. 04 Apr, 2017 1 commit
  4. 07 Mar, 2017 2 commits
  5. 03 Mar, 2017 1 commit
  6. 23 Feb, 2017 1 commit
  7. 11 Jan, 2017 1 commit
    • Andrei Pavel's avatar
      Cassandra Host Data Source stress test · 6efa71b9
      Andrei Pavel authored
      It is part of the generic_host_data_source_unittest.cc, able to be
      implemented for other HDS as well. It executes INSERT statements and
      a certain SELECT statement which Cassandra struggles in performance
      with since it has to do two queries instead of a join. All statement
      executions are timed and repeated on an increasingly number of hosts.
      It is placed last and DISABLED_ as you don't want to run this during
      a usual make check.
      6efa71b9
  8. 27 Dec, 2016 1 commit
  9. 22 Dec, 2016 1 commit
  10. 14 Dec, 2016 3 commits
    • Andrei Pavel's avatar
      Cassandra Host Data Source · f3598e76
      Andrei Pavel authored
      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.
      f3598e76
    • Andrei Pavel's avatar
      Cassandra Host Data Source · 6bc15852
      Andrei Pavel authored
      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.
      6bc15852
    • Andrei Pavel's avatar
      Cassandra update · 50fd7903
      Andrei Pavel authored
      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
      50fd7903
  11. 12 Dec, 2016 1 commit
  12. 29 Nov, 2016 1 commit
    • Tomek Mrugalski's avatar
      [5014_phase2] SimpleParser implemented, 4 parsers converted · f9abab4b
      Tomek Mrugalski authored
       - SimpleParser concept implemented
       - Converted 4 parsers (option data, option data list, option defintion,
         option definition list)
       - updated unit-tests
       - converted other parsers (HostReservationParser{4,6}, ClientClassDefParser)
         to use those new parsers
       - converted kea-dhcp{4,6} to use those new parsers
      
      Conflicts:
      	src/bin/dhcp6/json_config_parser.cc
      	src/lib/dhcpsrv/parsers/dhcp_parsers.cc
      f9abab4b
  13. 21 Oct, 2016 2 commits
  14. 20 Sep, 2016 1 commit
  15. 26 Aug, 2016 1 commit
  16. 14 Jul, 2016 1 commit
    • Thomas Markwalder's avatar
      [4277] Added PostgreSQL HR Managment section to developer's guide · c941012d
      Thomas Markwalder authored
      src/lib/dhcprsrv/images/pgsql_host_data_source.svg
          - New class diagram for PgSqlHostDataSource
      
      doc/Doxyfile
          - Added src/lib/dhcprsrv/images to IMAGE_PATH
      
      src/lib/dhcpsrv/Makefile.am
          - Added images/pgsql_host_data_source.svg to EXTRA_DIST
      
      src/lib/dhcpsrv/libdhcpsrv.dox
          - Added subsection postgreSQLHostMgr
      
      src/lib/dhcpsrv/pgsql_connection.h
      src/lib/dhcpsrv/pgsql_exchange.h
          - Minor cleanup
      c941012d
  17. 08 Jul, 2016 1 commit
  18. 02 Jul, 2016 1 commit
  19. 23 Jun, 2016 2 commits
  20. 21 Jun, 2016 1 commit
    • Thomas Markwalder's avatar
      [4277] Bare bones implementation of PgSqlHostDataSource · 33428957
      Thomas Markwalder authored
      src/lib/dhcpsrv
          pgsql_host_data_source.c
          pgsql_host_data_source.h  - new files, preliminary implementation
      
      src/lib/dhcpsrv/Makefile.am
          Added new files pgsql_host_data_source.cc, pgsql_host_data_source.h
      
      src/lib/dhcpsrv/dhcpsrv_messages.mes
          Added log messages DHCPSRV_PGSQL_HOST_DB_GET_VERSION, DHCPSRV_PGSQL_START_TRANSACTION
      
      src/lib/dhcpsrv/pgsql_connection.cc
      src/lib/dhcpsrv/pgsql_connection.h
          Added PgSqlTransaction
          Added PgSqlConnection::startTransaction()
      
      src/lib/dhcpsrv/pgsql_exchange.cc
      src/lib/dhcpsrv/pgsql_exchange.h
          PsqlBindArray
          - Added storage of conversion strings used for bound values
          - Added add() variants for uint8_t, IOAddress, uint8_t buffer
          - Added templated variant for miscellaneous types
      
          PgSqlExchange
          - Removed getColumnValue variants for various integers, replaced
          with templated version for miscellaneous types
      
      src/lib/dhcpsrv/pgsql_lease_mgr.cc
          Added todo comment to remember to account for hwaddr columns added to lease6
      
      src/lib/dhcpsrv/tests/pgsql_exchange_unittest.cc
          TEST(PsqlBindArray, basicOperation) - new test to exercise bind functions
      33428957
  21. 18 May, 2016 1 commit
    • Thomas Markwalder's avatar
      [4276] Created new base class, PgSqlExchange · 09e4931b
      Thomas Markwalder authored
      src/lib/dhcpsrv/Makefile.am
          Added pgsql_exchange.cc and pgsql_exchange.h
      
      src/lib/dhcpsrv/pgsql_exchange.h
      src/lib/dhcpsrv/pgsql_exchange.cc
          New files, containng new base class PgSqlExchange from
          which was distilled from PgSqlLeaseExchange
      
      src/lib/dhcpsrv/pgsql_lease_mgr.cc
          Refactored exchange classes to use new base class
          Moved PsqlBindArray into pgsql_exchange.*
      09e4931b
  22. 17 May, 2016 1 commit
  23. 11 May, 2016 1 commit
  24. 05 May, 2016 1 commit
  25. 26 Apr, 2016 1 commit
  26. 13 Apr, 2016 1 commit
  27. 12 Jan, 2016 1 commit
  28. 10 Dec, 2015 1 commit
    • Marcin Siodelski's avatar
      Revert "[master] Merge branch 'trac4106'" · 6bc8c1cb
      Marcin Siodelski authored
      This reverts commit 8f2a1f8a, reversing
      changes made to ed7edadc.
      
      This  merge introduced regressions in our build farm and revealed
      issues in the DHCP4o6 IPC code. It also revealed some differences
      in sockets handling under Linux and BSD. Rather than continue
      patching this here, we should work on the branch to resolve all
      issues and then merge 1.1.
      6bc8c1cb
  29. 09 Dec, 2015 1 commit
  30. 30 Nov, 2015 1 commit
  31. 23 Nov, 2015 1 commit
  32. 18 Nov, 2015 1 commit
    • Thomas Markwalder's avatar
      [4096] Addressed review comments · 668ec9e6
      Thomas Markwalder authored
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp6/tests/config_parser_unittest.cc
      src/lib/dhcpsrv/client_class_def.h
          Fixed spellings and spacing.
      
      src/lib/dhcpsrv/Makefile.am
      src/lib/dhcpsrv/tests/Makefile.am
          Move eval lib up in the link order
      668ec9e6
  33. 17 Nov, 2015 2 commits