1. 24 May, 2018 1 commit
  2. 18 May, 2018 1 commit
  3. 17 May, 2018 1 commit
  4. 16 May, 2018 14 commits
  5. 15 May, 2018 4 commits
  6. 14 May, 2018 5 commits
  7. 12 May, 2018 2 commits
  8. 11 May, 2018 2 commits
  9. 09 May, 2018 4 commits
    • Thomas Markwalder's avatar
      [5589] Initial checkin · 96b0712f
      Thomas Markwalder authored
      New stat_cmds hook library initial commit.
      Both stat-lease4/6-get commands implemented and unit tested
      
      modified:
          configure.ac
          src/hooks/dhcp/Makefile.am
      new:
          src/hooks/dhcp/stat_cmds/.gitignore
          src/hooks/dhcp/stat_cmds/Makefile.am
          src/hooks/dhcp/stat_cmds/stat_cmds.cc
          src/hooks/dhcp/stat_cmds/stat_cmds.dox
          src/hooks/dhcp/stat_cmds/stat_cmds.h
          src/hooks/dhcp/stat_cmds/stat_cmds_callouts.cc
          src/hooks/dhcp/stat_cmds/stat_cmds_log.cc
          src/hooks/dhcp/stat_cmds/stat_cmds_log.h
          src/hooks/dhcp/stat_cmds/stat_cmds_messages.mes
          src/hooks/dhcp/stat_cmds/tests/.gitignore
          src/hooks/dhcp/stat_cmds/tests/Makefile.am
          src/hooks/dhcp/stat_cmds/tests/run_unittests.cc
          src/hooks/dhcp/stat_cmds/tests/stat_cmds_unittest.cc
          src/hooks/dhcp/stat_cmds/version.cc
      96b0712f
    • Thomas Markwalder's avatar
      [5588] Cassandra shared lease stats support implemented · 83318b90
      Thomas Markwalder authored
          Note this impl is done with calculate-on-demand SQL
          statements rather than stat tables pluse triggers.
      
      src/lib/dhcpsrv/cql_lease_mgr.*
          Added new SQL statements for lease stats queries
      
          CqlLeaseStatsQuery
              Constructors - added variants to support where clause params
      
              start() - modified to support query variants based
              on where clause params
      
         CqlSqlLeaseMgr
              Added start variants:
              - startSubnetLeaseStatsQuery4(const SubnetID& subnet_id)
              - startSubnetRangeLeaseStatsQuery4(const SubnetID& first_subnet_id,
                                                   const SubnetID& last_subnet_id)
      
      src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
          New unit tests:
          - TEST_F(CqlLeaseMgrTest, leaseStatsQuery4)
          - TEST_F(CqlLeaseMgrTest, leaseStatsQuery6)
      83318b90
    • Thomas Markwalder's avatar
      [5587] PostgreSQL support for shared lease stats implementation · b0bea19c
      Thomas Markwalder authored
      src/share/database/scripts/pgsql/dhcpdb_create.pgsql
          Adds lease<4/6>_stat tables and triggers
      src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
          Added drops for lease<4/6>_stat tables and triggers
      
      src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
          Adds lease<4/6>_stat tables and triggers
          Populates stat tables from existing lease table content
      src/bin/admin/tests/mysql_tests.sh.in
          mysql_lease6_stat_per_type() - fixed typo in test
      
      src/bin/admin/tests/pgsql_tests.sh.in
          run_statement() - new convenience fucntion for
          running statement with option expected outcome
      
          pgsql_upgrade_schema_to_version() - new function
          which converts the existing schema to a target version
      
          pgsql_lease4_stat_test() - tests v4 stat table and
          triggers in an new database
      
          pgsql_lease6_stat_test() - tests v6 stat table and
          triggers in an new database.
      
          pgsql_lease6_stat_per_type() - helper function which
          tests v6 stat table and triggers using a given address
          and lease type
      
          pgsql_lease_stat_upgrade_test() - tests data migration,
          stat table and trigger operations on an upgraded database
      
      src/lib/dhcpsrv/pgsql_lease_mgr.*
          Added new SQL statements for lease stats queries
      
          PgSqlLeaseStatsQuery
              Constructors - added variants to support where clause params
              start() - modified to support query variants based
              on where clause params
      
          PgSqlLeaseMgr
              Added start variants:
              - startSubnetLeaseStatsQuery4(const SubnetID& subnet_id)
              - startSubnetRangeLeaseStatsQuery4(const SubnetID& first_subnet_id,
                                               const SubnetID& last_subnet_id)
      
      src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
          New unit tests:
          - TEST_F(PgSqlLeaseMgrTest, leaseStatsQuery4)
          - TEST_F(PgSqlLeaseMgrTest, leaseStatsQuery6)
      b0bea19c
    • Thomas Markwalder's avatar
      [5586] Addressed further review comments · a070c327
      Thomas Markwalder authored
      src/bin/admin/tests/dhcpdb_create_5.1.mysql - deleted
      
      src/bin/admin/tests/mysql_tests.sh.in
          mysql_upgrade_schema_to_version()  - new function which
          upgrades an existing schema to a target version
      
          mysql_lease_stat_upgrade_test() - modified to start with
          1.0 schema and then use new function to upgrade to 4.0
      
      src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
          mysql_lease_mgr_unittest.cc
              Added condition compilation around INVALID_HOST scenario
              that causes db connectivity tests to fail
      a070c327
  10. 08 May, 2018 6 commits