1. 22 May, 2019 1 commit
  2. 26 Apr, 2019 1 commit
    • Thomas Markwalder's avatar
      [#365,!296] Added kea-dhcp6 parsing support for calculate-tee-time and percents · c1954eb6
      Thomas Markwalder authored
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
      src/bin/dhcp6/json_config_parser.cc
      src/lib/dhcpsrv/parsers/simple_parser6.cc
          added support for calculate-tee-times, t1-percent and t2-percent
      
      src/bin/dhcp6/tests/tee_times_unittest.cc
          - new file with tests for t1/t2 determination
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          Subnet6ConfigParser::initSubnet() - added invocation
          of  parseTeePercents()
      
      src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
          updated tests
      
      src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc
          TEST(CfgSubnets6Test, teeTimePercentValidation) - new test
      c1954eb6
  3. 26 Mar, 2019 1 commit
    • Thomas Markwalder's avatar
      [#104,!290] kea-dhcpv6 now supports fetching config from backends · f5fe96c6
      Thomas Markwalder authored
          Infrastructure has been added to kea-dhcp6 such that it can
          now be configured to fetch full and then periodic updates
          from config backends.
      
          Merging the actual fetched content will be done under subsequent
          issues.
      
      src/bin/dhcp6
          ctrl_dhcp6_srv.*
              - ControlledDhcpv6Srv::processConfig() - added logic to schedule CB update timer
              - ControlledDhcpv6Srv::cbFetchUpdates() - new callback function for CB updates
      
          dhcp6_lexer.ll
          dhcp6_parser.yy
              -  Added config-fetch-wait-time
      
          dhcp6_messages.mes
              -  New log messages
      
          dhcp6_srv.*
              - Dhcpv6Srv::cb_control_  - new member for config backend access
              - Dhcpv6Srv::inTestMode() - new function to test for unit test mode
      
          json_config_parser.cc
              - configureDhcp6Server() - invokes full fetch from config backend
      
      src/bin/dhcp6/tests
          config_backend_unittest.cc - new file/tests for config backend testing
          config_parser_unittest.cc - updated
          get_config_unittest.cc - rebuild tests
          kea_controller_unittest.cc - added CB control/timer tests
      
      src/lib/dhcpsrv/
          dhcpsrv_messages.mes - added log message
      	cb_ctl_dhcp6.* - new files that provide v6 impl of config backend controller
      
      doc/examples/kea6/all-keys-current.json - added config-fetch-wait-time
      f5fe96c6
  4. 21 Mar, 2019 3 commits
  5. 15 Mar, 2019 1 commit
  6. 27 Nov, 2018 1 commit
  7. 22 Nov, 2018 2 commits
  8. 20 Nov, 2018 2 commits
  9. 07 Nov, 2018 1 commit
  10. 06 Nov, 2018 1 commit
    • Thomas Markwalder's avatar
      [#42] kea-dhcp6 can now parse and use queue-control · 32d8549e
      Thomas Markwalder authored
      src/bin/dhcp6/ctrl_dhcp6_srv.cc
          ControlledDhcpv6Srv::processConfig() - adde packet queue config logic
      
      src/bin/dhcp6/dhcp6_lexer.ll
          Added parsing of queue-control
      
      src/bin/dhcp6/dhcp6_messages.mes
          Added DHCP6_CONFIG_PACKET_QUEUE message
      
      src/bin/dhcp6/dhcp6_parser.yy
      
      src/bin/dhcp6/json_config_parser.cc
          configureDhcp6Server() - now parses "queue-control"
      
      src/bin/dhcp6/parser_context.*
          Added QUEUE_CONTROL
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
          TEST_F(Dhcp6ParserTest, queueControl)
          TEST_F(Dhcp6ParserTest, queueControlInvalid) - new tests
      
      src/lib/dhcpsrv/parsers/queue_control_parser.*
          Revamped to construct an ElementPtr rather than QueueControl
      32d8549e
  11. 30 Oct, 2018 1 commit
    • Thomas Markwalder's avatar
      [#129,!55] Add missing global keyword parsing to kea-dhcp6 · ef8592eb
      Thomas Markwalder authored
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
          adde keyword value of "global"
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
          TEST_F(Dhcp6ParserTest, hostReservationPerSubnet) - added check
          for "global" mode value
      
      src/bin/dhcp6/tests/get_config_unittest.cc
           Updated generated config tests
      ef8592eb
  12. 05 Oct, 2018 2 commits
    • Thomas Markwalder's avatar
      [#32,!23] - Added server-tag global to SrvConfig and kea-dhcp4/6 · 7fd4a5c0
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
      src/bin/dhcp4/json_config_parser.cc
          added server-tag
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          TEST_F(Dhcp4ParserTest, serverTag) - new test
      
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
      src/bin/dhcp6/json_config_parser.cc
          added server-tag
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
          TEST_F(Dhcp6ParserTest, serverTag)
      
      src/lib/dhcpsrv/parsers/simple_parser4.cc
      src/lib/dhcpsrv/parsers/simple_parser6.cc
          Added server-tag to global defaults
      
      src/lib/dhcpsrv/srv_config.cc
          Added server_tag_ memger to SrvConfig
      
      src/lib/dhcpsrv/tests/srv_config_unittest.cc
          TEST_F(SrvConfigTest, serverTag)
          TEST_F(SrvConfigTest, unparseConfigControlInfo6) - new tests
      7fd4a5c0
    • Thomas Markwalder's avatar
      dbef8eac
  13. 07 Aug, 2018 1 commit
    • Thomas Markwalder's avatar
      [5704] host backends and kea-dhcp4/6 support global HR storage · f1b3b3c7
      Thomas Markwalder authored
      - Added constants for special SubnetIDs:
          SUBNET_ID_GLOBAL, SUBNET_ID_MAX, SUBNET_ID_UNUSED
      
      - Modified code throughout to use these constants, rather than hard-coded
        values.   Note, MySQL and PostgreSQL host backends convert from NULL to
        UNUSED and back.
      
      - kea-dhcp4/6 servers will now parse a "reservations" element at the global
        level.
      
      src/lib/dhcpsrv/subnet_id.h
          Added constants SubnetID SUBNET_ID_GLOBAL, SUBNET_ID_MAX, SUBNET_ID_UNUSED
      
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
      src/bin/dhcp4/json_config_parser.cc
          kea-dhcp4 parsing now handles reservations as a global element
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          TEST_F(Dhcp4ParserTest, globalReservations) - new test to
          verify global HR parsing
      
      src/bin/dhcp4/tests/dora_unittest.cc
      src/lib/dhcpsrv/cfg_hosts.cc
      src/lib/dhcpsrv/host.cc
      src/lib/dhcpsrv/host_mgr.cc
      src/lib/dhcpsrv/mysql_host_data_source.cc
      src/lib/dhcpsrv/parsers/host_reservation_parser.cc
      src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
      src/lib/dhcpsrv/tests/alloc_engine_utils.cc
      src/lib/dhcpsrv/tests/host_mgr_unittest.cc
      src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
      src/lib/dhcpsrv/tests/host_reservations_list_parser_unittest.cc
      src/lib/dhcpsrv/tests/host_unittest.cc
          Replaced SubnetID 0 with SUBNET_ID_UNUSED
      
      src/lib/dhcpsrv/srv_config.cc
          SrvConfig::toElement() - added global reservations output
      
      src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc
          TEST_F(CfgHostsTest, globalSubnetIDs)
          TEST_F(CfgHostsTest, unusedSubnetIDs) - new tests
      
      src/lib/dhcpsrv/tests/host_unittest.cc
          Replaced SubnetID 0 with SUBNET_ID_UNUSED
          TEST_F(HostTest, toText)  - updated to verify global ID output
      
      src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
          TEST_F(MySqlHostDataSourceTest, globalSubnetId4)
          TEST_F(MySqlHostDataSourceTest, globalSubnetId6) - new tests
      
      src/lib/dhcpsrv/tests/srv_config_unittest.cc
          TEST_F(SrvConfigTest, unparseHR) - added global HRs
      
      src/lib/dhcpsrv/testutils/generic_host_data_source_unittest.*
          GenericHostDataSourceTest::testGlobalSubnetId4()
          GenericHostDataSourceTest::testGlobalSubnetId6()
      
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
      src/bin/dhcp6/json_config_parser.cc
          kea-dhcp6 now parses reservations as a global element
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
          TEST_F(Dhcp6ParserTest, globalReservations) - new test
      f1b3b3c7
  14. 30 Jul, 2018 1 commit
  15. 27 Jul, 2018 1 commit
    • Thomas Markwalder's avatar
      [5680] kea-dhcp4/6 now parse hostname-char-set and hostname-char-replacment params · ea3d6bca
      Thomas Markwalder authored
      Added to parsing and parsing unit tests.
      Servers do not yet utilize the values.
      
      Modified:
      
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp4/tests/fqdn_unittest.cc
      src/bin/dhcp4/tests/get_config_unittest.
      
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
      src/bin/dhcp6/tests/fqdn_unittest.cc
      src/bin/dhcp6/tests/get_config_unittest.
      ea3d6bca
  16. 26 Apr, 2018 1 commit
    • 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
  17. 06 Apr, 2018 1 commit
  18. 05 Apr, 2018 1 commit
  19. 01 Apr, 2018 1 commit
  20. 22 Mar, 2018 1 commit
  21. 12 Mar, 2018 2 commits
  22. 01 Mar, 2018 1 commit
    • Thomas Markwalder's avatar
      [5477] kea-dhcp6 now supports db reconnect · 78b8edb6
      Thomas Markwalder authored
          kea-dhcp6
              added support for max-reconnect-tries and reconnect-wait-time
              to lease and host db parsers
      
              Added a callback for when DB backends detect loss of connectivity
      
              Added a self-rescheduling method to attempt to reconnect to the
              backends if retries are enabled
      
          dhcpsrv
              PgSqlConnection::checkStatementError() - Modified "fatal" logic
              to throw after invoking db_lost_callback.
      
          Misc. cleanup
      78b8edb6
  23. 12 Feb, 2018 1 commit
  24. 29 Jan, 2018 1 commit
  25. 26 Jan, 2018 1 commit
  26. 18 Jan, 2018 1 commit
  27. 03 Dec, 2017 1 commit
  28. 02 Dec, 2017 1 commit
  29. 01 Dec, 2017 2 commits
  30. 29 Nov, 2017 3 commits
  31. 28 Nov, 2017 1 commit