1. 07 Nov, 2018 2 commits
  2. 19 Oct, 2018 1 commit
  3. 17 Oct, 2018 1 commit
  4. 16 Oct, 2018 1 commit
    • Thomas Markwalder's avatar
      [#101,!73] kea-dhcp4 can init CB backends based on config · 210105df
      Thomas Markwalder authored
      src/bin/dhcp4/json_config_parser.*
          databaseConfigConnect(const SrvConfigPtr& srv_cfg)
          databaseConfigFetch(const SrvConfigPtr& srv_cfg, ElementPtr /*global_scope*/)
          - new functions
      
          configureDhcp4Server() - modified to call databaseConfigFetch() after
          loading hook libs
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          TEST_F(Dhcp4ParserTest, configControlInfoNoFactory) - new test
          TEST_F(Dhcp4ParserTest, configControlInfo) - modified to register
          dummy backend
      
      src/lib/dhcpsrv/testutils/test_config_backend_dhcp4.*
          New files that implement DHPC4 dummy backend for testing
      210105df
  5. 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
      [#32,!23] dhcp4 now parses "config-control" element · 8c5e6ce8
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Added parsing support for config-control and config-databases
      
      src/bin/dhcp4/json_config_parser.cc
          configureDhcp4Server() - added handler for config-control element
      
      src/bin/dhcp4/parser_context.*
          added CONFIG_CONTROL and CONFIG_DATABASE
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
         TEST_F(Dhcp4ParserTest, configControlInfo) - new test
      8c5e6ce8
  6. 09 Aug, 2018 1 commit
  7. 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
  8. 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
  9. 29 May, 2018 1 commit
    • Thomas Markwalder's avatar
      [5418] Improved error handling of invalid subnet prefix lengths · 5ba16fab
      Thomas Markwalder authored
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          SubnetConfigParser::createSubnet() - explicitly catch
          exceptions thrown by lexical_cast and added logic to
          catch values > 256
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp6/tests/config_parser_unittest.cc
          badSubnetValues() - new test that checks
          several invalid subnet value scenarios
      5ba16fab
  10. 25 May, 2018 1 commit
    • Thomas Markwalder's avatar
      [5596] renew-timer and rebind-timer now optional for DHCPv4 · dec8d15f
      Thomas Markwalder authored
      v4 Parsing now allows renew/rebind timers to be unspecified,
      and kea-dhcp4 logic now matchs ISC DHCP:
      
      1. Send T2 only if it is specified and is less than lease lifetime
      2. Send T1 only if it is specified and is less than either T2
      if specified, or lease lifetime in the absence of T2
      
      doc/guide/dhcp4-srv.xml
          Updated discussion of rebind/renew-timers
      
      src/bin/dhcp4/dhcp4_srv.cc
          Dhcpv4Srv::assignLease() - modified to sanity check
          T1 and T2
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp4/tests/get_config_unittest.cc
      src/bin/dhcp4/tests/simple_parser4_unittest.cc
      src/bin/dhcp6/tests/get_config_unittest.cc
      src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
      src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
          updated numerous tests
      
      src/lib/dhcpsrv/network.cc
          Network::toElement() - only outputs T1, T2, and
          valid lifetime if they are specified
      
      src/lib/dhcpsrv/network.h
          Network() - inits t1_, t2_, and valid_ to unspecified
          Triplet value
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          Subnet4ConfigParser::initSubnet() - allow renew-timer and
          rebind-timer to be optional
      
      src/lib/dhcpsrv/parsers/simple_parser4.cc
          SimpleDefaults SimpleParser4::GLOBAL4_DEFAULTS - removed
          entries for renew-timer and rebind-timer
      dec8d15f
  11. 24 May, 2018 1 commit
  12. 27 Apr, 2018 1 commit
  13. 26 Apr, 2018 1 commit
    • 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
  14. 01 Apr, 2018 1 commit
  15. 08 Mar, 2018 1 commit
  16. 12 Feb, 2018 1 commit
  17. 29 Jan, 2018 1 commit
  18. 26 Jan, 2018 1 commit
  19. 18 Jan, 2018 1 commit
  20. 17 Dec, 2017 1 commit
  21. 14 Dec, 2017 1 commit
  22. 03 Dec, 2017 1 commit
  23. 29 Nov, 2017 6 commits
  24. 23 Nov, 2017 1 commit
  25. 20 Nov, 2017 2 commits
  26. 05 Nov, 2017 1 commit
  27. 14 Oct, 2017 1 commit
  28. 06 Oct, 2017 1 commit
  29. 01 Oct, 2017 1 commit
  30. 20 Sep, 2017 2 commits
  31. 15 Sep, 2017 1 commit