1. 15 May, 2018 1 commit
    • Thomas Markwalder's avatar
      [5564] Servers dump cached and parked packets on reconfig and shutdown · 5b9b5e26
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_srv.*
          - dumpPackets() - new function that frees all cached and parked packets
          - Dhcpv4Srv::~Dhcpv4Srv() - added call to dumpPackets() for cleanliness
      
      src/bin/dhcp4/json_config_parser.cc
          configureDhcp4Server() - added a call Dhcpv4Srv::dumpPackets()
      
      src/bin/dhcp6/dhcp6_srv.*
          - dumpPackets() - new function that frees all cached and parked packets
          - Dhcpv6Srv::~Dhcpv6Srv() - added call to dumpPackets() for cleanliness
      
      src/bin/dhcp6/json_config_parser.cc
          configureDhcp6Server() - added a call Dhcpv6Srv::dumpPackets()
      
      src/lib/hooks/hooks_manager.h
          - clearParkingLots() - new convenience function for clearing
           all parking lots
          - clearParkingLotsInternal() - private impl of the above
      5b9b5e26
  2. 14 May, 2018 1 commit
  3. 12 May, 2018 3 commits
  4. 11 May, 2018 3 commits
  5. 10 May, 2018 20 commits
  6. 09 May, 2018 6 commits
    • 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
      [master] MySQL support for shared lease stats implemented · 593ddeae
      Thomas Markwalder authored
          Merge branch 'trac5586'
      593ddeae
    • 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
    • Marcin Siodelski's avatar
      [master] Added ChangeLog for #5590. · 7946a18a
      Marcin Siodelski authored
      7946a18a
    • Marcin Siodelski's avatar
      [master] Merge branch 'trac5590' · 64351229
      Marcin Siodelski authored
      64351229
    • Francis Dupont's avatar
      4f9e215f
  7. 08 May, 2018 6 commits