1. 17 Oct, 2018 1 commit
  2. 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
  3. 12 Oct, 2018 2 commits
    • Thomas Markwalder's avatar
      [#101,!53] Addressed review comments · f2431e6c
      Thomas Markwalder authored
      f2431e6c
    • Thomas Markwalder's avatar
      [#101,!58] Implemented ConfigBackendDhcp4Mgr, mysql backend registers/unregisters · 14441b79
      Thomas Markwalder authored
      src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc
          load() - added call to register MySQL backend
          unload() - added call to unregister MySQL backend
      
      src/hooks/dhcp/mysql_cb/mysql_cb_dhcp4.*
          MySqlConfigBackendDHCPv4::registerBackendType()
          MySqlConfigBackendDHCPv4::unregisterBackendType()
          - new static methods for registering/unregistering
      
      src/hooks/dhcp/mysql_cb/tests/Makefile.am
          mysql_cb_dhcp4_mgr_unittest.cc  - new file
      
      src/lib/config_backend/base_config_backend_mgr.h
          bool unregisterBackendFactory(const std::string& db_type)
          - new method to unregister factory and delete backends
      
      src/lib/config_backend/base_config_backend_pool.h
          void delAllBackends(const std::string& db_type)
          - new method to delete all backends of a given type
      
      /src/lib/config_backend/tests/config_backend_mgr_unittest.cc
          TEST_F(ConfigBackendMgrTest, unregister) - new test
      
      src/lib/dhcpsrv/Makefile.am
      src/lib/dhcpsrv/config_backend_dhcp4.h
      src/lib/dhcpsrv/config_backend_dhcp4.cc
          New files that implement ConfigBackendDhcp4Mgr
      
      src/lib/dhcpsrv/config_backend_pool_dhcp4.h
          Added missing public scope, removed pure virtual function
      
      src/lib/eval/tests/Makefile.am
          Added new dependency libkea-cc
      14441b79
  4. 11 Oct, 2018 1 commit
  5. 10 Oct, 2018 1 commit
    • Thomas Markwalder's avatar
      [#101,!58] Implemented ConfigBackendDhcp4Mgr, mysql backend registers/unregisters · f4b4bb9f
      Thomas Markwalder authored
      src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc
          load() - added call to register MySQL backend
          unload() - added call to unregister MySQL backend
      
      src/hooks/dhcp/mysql_cb/mysql_cb_dhcp4.*
          MySqlConfigBackendDHCPv4::registerBackendType()
          MySqlConfigBackendDHCPv4::unregisterBackendType()
          - new static methods for registering/unregistering
      
      src/hooks/dhcp/mysql_cb/tests/Makefile.am
          mysql_cb_dhcp4_mgr_unittest.cc  - new file
      
      src/lib/config_backend/base_config_backend_mgr.h
          bool unregisterBackendFactory(const std::string& db_type)
          - new method to unregister factory and delete backends
      
      src/lib/config_backend/base_config_backend_pool.h
          void delAllBackends(const std::string& db_type)
          - new method to delete all backends of a given type
      
      /src/lib/config_backend/tests/config_backend_mgr_unittest.cc
          TEST_F(ConfigBackendMgrTest, unregister) - new test
      
      src/lib/dhcpsrv/Makefile.am
      src/lib/dhcpsrv/config_backend_dhcp4.h
      src/lib/dhcpsrv/config_backend_dhcp4.cc
          New files that implement ConfigBackendDhcp4Mgr
      
      src/lib/dhcpsrv/config_backend_pool_dhcp4.h
          Added missing public scope, removed pure virtual function
      
      src/lib/eval/tests/Makefile.am
          Added new dependency libkea-cc
      f4b4bb9f
  6. 08 Oct, 2018 10 commits
  7. 05 Oct, 2018 3 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] SrvConfig::toElement now outputs config-control · a8e05f99
      Thomas Markwalder authored
      src/lib/dhcpsrv/srv_config.cc
          SrvConfig::toElement() - added logic to output config-control
      
      src/lib/dhcpsrv/tests/srv_config_unittest.cc
          TEST_F(SrvConfigTest, unparseConfigControlInfo) - new test
      a8e05f99
    • Thomas Markwalder's avatar
      [#32,!23] Added ControlConfigInfo to lib/config · d06703a9
      Thomas Markwalder authored
      src/lib/config/config_ctl_info.*
          New files, implementing ConfigDbInfo and ConfigControlInfo
          classes use for housing configuration backend and control
          information
      
      src/lib/config/Makefile.am
          Added config_ctl_info.h/cc
          Added libkea-database.la
      
      src/lib/config/tests/config_ctl_info_unitests.cc
          New file which unit tests new classes
      
      src/lib/database/database_connection.*
          DatabaseConnection::toElement(const ParameterMap& params) - new
          static function which turns a parameter map into Elements
      
          DatabaseConnection::toElementDbAccessString(const std::string& dbaccess)
          - new static function which turns an access string into Elements
      
      src/lib/database/dbaccess_parser.*
          Replaced StringPairMap with DatabaseConnection::ParameterMap
      
      src/lib/database/tests/database_connection_unittest.cc
          TEST(DatabaseConnection, toElementDbAccessStringValid)
          TEST(DatabaseConnection, toElementDbAccessStringInvalid)
          TEST(DatabaseConnection, toElementDbAccessStringEmpty) - new tests
      
      src/lib/dhcpsrv/cfg_db_access.*
          CfgDbAccess::toElementDbAccessString() - moved to
          lib/database/database_connection.cc so it can be shared
      d06703a9
  8. 18 Sep, 2018 4 commits
  9. 15 Sep, 2018 2 commits
  10. 13 Sep, 2018 1 commit
  11. 10 Sep, 2018 1 commit
  12. 07 Sep, 2018 6 commits
  13. 03 Sep, 2018 7 commits