1. 02 Aug, 2017 1 commit
  2. 30 Jul, 2017 1 commit
  3. 28 Jul, 2017 1 commit
  4. 07 Jul, 2017 1 commit
  5. 30 Jun, 2017 1 commit
  6. 21 Apr, 2017 2 commits
    • Thomas Markwalder's avatar
      [5247] Addressed review comments · a7941a73
      Thomas Markwalder authored
      a7941a73
    • Thomas Markwalder's avatar
      [5247] Corrected issues with assigned-<lease/nas/pd> stats · fe3766ae
      Thomas Markwalder authored
      doc/guide/dhcp4-srv.xml
      doc/guide/dhcp6-srv.xml
          Added entries for reclaimed-leases
      
      src/lib/dhcpsrv/alloc_engine.cc
      
          AllocEngine::reuseExpiredLease(Lease6Ptr&...) - increment
          assigned-<nas/pds> for real allocations
      
          AllocEngine::extendLease6() - increment assigned-<nas/pds>
          for real allocations if the lease expired
      
          AllocEngine::renewLease4(const Lease4Ptr&...)
          - set lease state to STATE_DEFAULT for real allocations
          - increment assigned-leases if lease is expired or reclaimed
            for real allocations
      
          AllocEngine::reuseExpiredLease4(Lease4Ptr&...)
          - increment assigned-leases for real allocations
      
      src/lib/dhcpsrv/cfg_subnets4.cc
          CfgSubnets4::removeStatistics() - added "reclaimed-leases"
      
      src/lib/dhcpsrv/cfg_subnets6.cc
          CfgSubnets4::removeStatistics() - added "reclaimed-leases"
      
      src/lib/dhcpsrv/lease_mgr.cc
          LeaseMgr::recountLeaseStats4()
          LeaseMgr::recountLeaseStats6()
          - added handling of "reclaimed-leases"
          - fixed name of "reclaimed-declined-addresses"
      
      src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
          TEST_F(AllocEngine4Test, simpleRenew4)  - new test to verify stats
          on a normal renew, non-expired
          Added EXPECT_TRUE around calls to testStatistics for invocation line numbers
          Added stat checks to several tests
      
      src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
          Added EXPECT_TRUE around calls to testStatistics for invocation line numbers
          Added stat checks to several tests
      
      src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc
          Added checks of assigned stats
      
      src/lib/dhcpsrv/tests/alloc_engine_utils.cc
          AllocEngine6Test::initSubnet() - removed artificial stat values
      
          NakedAllocEngine::addHost() - new method to add a host to the
          current configuration, rather than use staging/commit as the latter
      fe3766ae
  7. 14 Apr, 2017 2 commits
  8. 13 Apr, 2017 1 commit
  9. 03 Apr, 2017 1 commit
  10. 31 Mar, 2017 1 commit
  11. 17 Mar, 2017 2 commits
  12. 16 Mar, 2017 1 commit
  13. 15 Mar, 2017 1 commit
  14. 01 Mar, 2017 1 commit
  15. 28 Feb, 2017 1 commit
  16. 23 Feb, 2017 1 commit
  17. 16 Feb, 2017 2 commits
  18. 14 Feb, 2017 1 commit
  19. 05 Feb, 2017 1 commit
  20. 02 Feb, 2017 1 commit
  21. 01 Feb, 2017 1 commit
  22. 24 Jan, 2017 1 commit
  23. 12 Jan, 2017 1 commit
  24. 11 Jan, 2017 3 commits
    • Thomas Markwalder's avatar
      [5033] - kea-dhcp6 now uses new D2ClientConfigParser · 9b20235e
      Thomas Markwalder authored
          src/bin/dhcp6/json_config_parser.cc
              createGlobalDhcp6ConfigParser()
              - added clause to invoke new D2ClientConfigParser to
              set staging config
              - added clause to apply staged D2ClientConfig (formerly done
              by parser commit
      
          src/bin/dhcp6/parser_context.h
          src/bin/dhcp6/parser_context.cc
              aded PARSER_DHCP_DDNS context
      
          src/bin/dhcp4/simple_parser6.h
          src/bin/dhcp4/simple_parser6.cc
              defined SimpleParser6::D2_CLIENT_CONFIG_DEFAULTS
              SimpleParser6::setAllDefaults() - now sets defaults
              for D2ClientConfig
      
          src/bin/dhcp6/tests/d2_unittest.cc
          src/bin/dhcp6/tests/fqdn_unittest.cc
              Updated replace-name-mode values and tests
              (true/false no longer supported)
      
          doc/guide/dhcp6-srv.xml
              Updated, replace-client-name no longer accepts booleans
      9b20235e
    • 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
    • Andrei Pavel's avatar
      Cassandra update · 8c71bbbc
      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
      8c71bbbc
  25. 05 Jan, 2017 1 commit
  26. 04 Jan, 2017 1 commit
  27. 28 Dec, 2016 2 commits
  28. 22 Dec, 2016 3 commits
  29. 14 Dec, 2016 3 commits