1. 24 May, 2018 1 commit
  2. 16 May, 2018 5 commits
  3. 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
  4. 12 May, 2018 1 commit
  5. 11 May, 2018 2 commits
  6. 09 May, 2018 2 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
      [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
  7. 08 May, 2018 2 commits
    • Thomas Markwalder's avatar
      [5586] Added schema unit tests · ebd3358b
      Thomas Markwalder authored
      src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
          Added SQL statements to populate lease4/6_stat tables
          from existing lease table content.
      
      src/bin/admin/tests/dhcpdb_create_5.1.mysql
          New file used for upgrade testing
      
      src/bin/admin/tests/mysql_tests.sh.in
          run_statement() - new convenience function for running SQL
          statements with an optional expected return value
      
          mysql_lease4_stat_test() - verifies lease4_stat
          table and trigger operations on a new database
      
          mysql_lease6_stat_test()
          mysql_lease6_stat_per_type() - new functions
          which lease6_stat table and trigger operations
          on a new database
      
          mysql_lease_stat_upgrade_test() - new function
          which verifies data migration from an earlier
          schema and trigger operation
      ebd3358b
    • Marcin Siodelski's avatar
      [5609] Several minor fixes as a result of the review. · 9f565a80
      Marcin Siodelski authored
      - Two clients share server instance in leases6_committed tests.
      - Updated some of the test descriptions.
      9f565a80
  8. 07 May, 2018 2 commits
  9. 02 May, 2018 1 commit
  10. 01 May, 2018 1 commit
  11. 30 Apr, 2018 1 commit
  12. 27 Apr, 2018 9 commits
  13. 26 Apr, 2018 3 commits
    • Thomas Markwalder's avatar
      [5535] kea-dhcp6 parsing now supports relay "ip-addresses" · e564f4da
      Thomas Markwalder authored
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
          Modified to support "ip-address" and
          "ip-addresses" under "relay"
      
      src/bin/dhcp6/tests/get_config_unittest.cc
          Updated per process.
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
          void checkResult() - modified to output parsing error text
      
          TEST_F(Dhcp6ParserTest, subnetRelayInfo)
          TEST_F(Dhcp6ParserTest, sharedNetworksDerive)
          - updated to use new Network methods
      
          TEST_F(Dhcp6ParserTest, subnetRelayInfoList) - new test
          to verify a list of addresses in relay
      e564f4da
    • Thomas Markwalder's avatar
      [5535] kea-dhcp4 parsing now supports relay "ip-addresses" · c71f3d38
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Modified to support "ip-address" and
          "ip-addresses" under "relay"
      
      src/bin/dhcp4/tests/get_config_unittest.cc
          Updated per process.
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          void checkResult() - modified to output parsing error text
      
          TEST_F(Dhcp4ParserTest, subnetRelayInfo)
          TEST_F(Dhcp4ParserTest, classifySubnets)
          - updated to use new Network methods
      
          TEST_F(Dhcp4ParserTest, subnetRelayInfoList) - new test
          to verify a list of addresses in relay
      c71f3d38
    • Francis Dupont's avatar
      00af3a4e
  14. 25 Apr, 2018 3 commits
  15. 23 Apr, 2018 1 commit
  16. 19 Apr, 2018 1 commit
  17. 18 Apr, 2018 1 commit
  18. 12 Apr, 2018 3 commits