1. 21 Aug, 2018 12 commits
  2. 16 Aug, 2018 3 commits
  3. 14 Aug, 2018 4 commits
    • Thomas Markwalder's avatar
      [5705] Minor review revisions · dbed2f11
      Thomas Markwalder authored
      dbed2f11
    • Tomek Mrugalski's avatar
      [5705] Changes after review · ef40a210
      Tomek Mrugalski authored
       - doc updated
       - mostly comments
      ef40a210
    • Thomas Markwalder's avatar
      [5705] kea-dhcp4 now fully supports globl HRs · 4f8db6c6
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Added support for HR_GLOBAL mode
      
      src/bin/dhcp4/tests/dhcp4_test_utils.cc
          Minor modifications to output exception and config text
          when parsing fails.
      
      src/bin/dhcp4/tests/host_unittest.cc
          New tests to make sure reservation matching behaves
          according to reservation modes
      
      src/lib/dhcpsrv/network.cc
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          Adding missed bits needed to parse HR_GLOBAL mode
      4f8db6c6
    • Thomas Markwalder's avatar
      [5705] AllocEngine4 now matches clients to global HRs · e46618e6
      Thomas Markwalder authored
      src/bin/dhcp4/tests/Makefile.am
      src/bin/dhcp4/tests/host_unittest.cc - new file with global HR tests
      
      src/lib/dhcpsrv/alloc_engine.*
          findGlobalReservation() - new function that searches for global HR
      
          findReservation() - calls findGlobalReservation() if mode is global
      
          hasAddressReservation()
          ClientContext4::currentHost()
              - modified to recognize global HRs
      
      src/lib/dhcpsrv/network.h
          Added new mode, Netork::HR_GLOBAL
      
      src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
          TEST_F(AllocEngine4Test, globalReservationReservedAddressDiscover)
          TEST_F(AllocEngine4Test, globalReservationReservedAddressRequest)
          TEST_F(AllocEngine4Test, globalReservationDynamicDiscover)
          TEST_F(AllocEngine4Test, globalReservationDynamicRequest) - new tests
      e46618e6
  4. 13 Aug, 2018 1 commit
  5. 09 Aug, 2018 3 commits
  6. 08 Aug, 2018 3 commits
  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. 30 Jul, 2018 4 commits
  9. 27 Jul, 2018 5 commits
    • Tomek Mrugalski's avatar
      [5680] Changes after review · 32466ab3
      Tomek Mrugalski authored
      32466ab3
    • Thomas Markwalder's avatar
      [5680] Added unit tests to verify kea-dhcp6 santizes FQDN values · fcd08902
      Thomas Markwalder authored
      modified:   src/bin/dhcp6/tests/fqdn_unittest.cc
      fcd08902
    • Thomas Markwalder's avatar
      [5680] kea-dhcp4 supports client FQDN name sanitizing · 8ac1c13d
      Thomas Markwalder authored
      src/lib/dhcpsrv/d2_client_mgr.h
          D2ClientMgr::adjustDomainName() - added logic to
          sanitize the inbound FQDN name when configured to do so
      
      src/lib/dhcpsrv/tests/d2_client_unittest.cc
          TEST(D2ClientMgr, sanitizeFqdnV4)
          TEST(D2ClientMgr, sanitizeFqdnV6) - new tests
      
      src/bin/dhcp4/tests/fqdn_unittest.cc
          TEST_F(NameDhcpv4SrvTest, sanitizeFqdn) - new test
      8ac1c13d
    • Thomas Markwalder's avatar
      [5680] kea-dhcp4 now uses hostname sanititzer when configured for it · 1825ead4
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_srv.cc
          Dhcpv4Srv::processHostnameOption() - sanitizes client hostname
          if configured to do so
      
      src/bin/dhcp4/tests/fqdn_unittest.cc
          TEST_F(NameDhcpv4SrvTest, sanitizeHostname) - new test to
          verify hostname sanitizing works as expected
      
      src/lib/dhcpsrv/d2_client_cfg.h
          D2ClientConfig::getHostnameSanitizer() added missing getter
      
      src/lib/dhcpsrv/tests/d2_client_unittest.cc
          TEST(D2ClientConfigTest, constructorsAndAccessors) - updated to
          verify hostname sanitizing stuff
      
      src/lib/util/strutil.cc
          fixed regex compilation issue
      1825ead4
    • 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
  10. 23 Jul, 2018 1 commit
  11. 07 Jul, 2018 1 commit
  12. 29 Jun, 2018 1 commit
  13. 27 Jun, 2018 1 commit