1. 01 Dec, 2016 3 commits
  2. 16 Dec, 2015 1 commit
  3. 11 Dec, 2015 1 commit
  4. 02 Jul, 2015 1 commit
    • Thomas Markwalder's avatar
      [3769] Added env var,KEA_PIDFILE_DIR; D2 now uses a PIDFile · d743c5f2
      Thomas Markwalder authored
      src/lib/dhcpsrv/daemon.c/h
          Daemon::Daemon() - Constructor will now override the default PID
          directory with the value of env variable KEA_PIDFILE_DIR.  This
          provides a simple means to alter the value for tests.
      
          Added am_file_author_ flag so Daemon instances will only delete
          a file they have written.
      
      src/lib/testutils/dhcp_test_lib.sh.in
          - verify_server_pid() - new function which verifies that a server has a PID file
          and that it contains the server's PID, and that the process is alive.
      
      src/bin/keactrl/tests/Makefile.am
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      
      Added PID file creation to D2
          src/bin/d2/d_controller.cc
          - DControllerBase::launch() - Added block to createPIDFile()
      
          -DControllerBase::parseArgs() Replaced call to Daemon::init()
          with call to Daemon::setConfigFile()
      
          src/bin/d2/tests/Makefile.am
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      
          src/bin/d2/tests/d2_process_tests.sh.in
          - dupcliate_server_start_test() - new test which verifies that D2 cannot be
          started twice (with the same configuration file)
      
          src/bin/d2/tests/d2_unittests.cc
          - main(int argc, char* argv[]) sets environment variable KEA_PIDFILE_DIR
           to override default PID diretory during tests
      
      src/lib/util/pid_file.cc/h
      src/lib/util/tests/pid_file_unittest.cc
          Changed PIDFile::check() to return either the PID contained in the PID file
          if the process is alive, or 0, rather than bool.  This permits callers
          to see/log the PID.
      d743c5f2
  5. 24 Jun, 2015 1 commit
  6. 11 Jun, 2015 1 commit
  7. 22 May, 2015 1 commit
  8. 19 May, 2015 1 commit
    • Shawn Routhier's avatar
      [trac3808] Enhance logging for D2 · 2becffcd
      Shawn Routhier authored
      Split the logging into three loggers
       config & general
       dhcp to d2
       d2 to dns (and back)
      
      Print out a request ID for each NCR event.  Currently this is the
      DHCID but it could be changed in the future to allow for comparing
      log entries between DHCP servers and D2.
      
      Fix up some typos I ran across while reading the code
      2becffcd
  9. 21 Jan, 2015 1 commit
  10. 16 Jan, 2015 1 commit
  11. 12 Jan, 2015 1 commit
  12. 11 Aug, 2014 2 commits
  13. 25 Jun, 2014 2 commits
  14. 18 Jun, 2014 1 commit
  15. 17 Jun, 2014 1 commit
    • Thomas Markwalder's avatar
      [3407] Integrated IOSignaling into CPL · 73f57b83
      Thomas Markwalder authored
      DController was extended to instantiate an IOSignalQueue and register for
      signals with a SignalSet.  The default implementation for signal processing
      supports SIGHUP as config file reload, and SIGINT/SIGTERM for graceful
      shutdown.  D2Controller inherits this support without change.
      
      A good deal of work went into the unit test classes as well, particularly
      DControllerTest.
      73f57b83
  16. 09 Jun, 2014 1 commit
    • Thomas Markwalder's avatar
      [3401] Addressed reveiw comments · 2c0ab179
      Thomas Markwalder authored
      Static handlers were removed from DControllerBase.
      Developer's guide has been updated to with --with-kea-config
      discussion and updated diagrams.
      Other minor corrections.
      
      (Note ingore diffs in the diagram .svg files, they aren't particularly
      meaningful to the human eye).
      2c0ab179
  17. 05 Jun, 2014 1 commit
    • Thomas Markwalder's avatar
      3401 - D2 now supports with-kea-config switch · 1c4d345d
      Thomas Markwalder authored
      The configuration switch --with-kea-config, now selects between
      two versions of D2Controller:
      
      1. One which must run as a BUNDY module and is implemented in
      bundy_d2_controller.(h/cc)
      
      All of the BIND10 support was extracted from DControllerBase and moved
      into this version of D2Controller.
      
      This controller is tested in tests/bundy_d2_controller_unittests.cc
      
      2. One that runs as a stand alone executable which must be supplied
      with a configuration file via the command line and is implemented in
      d2_controller.(h/cc).
      
      This version of D2Controller is nearly identical the the original.
      DControllerBase supports configuration from file.
      
      This controller is tested in tests/d2_controller_unittests.cc
      
      DControllerBase now inherits from Daemon which keeps it in step with
      K4 and K6.
      
      The stand-alone mode flag has been removed from all controllers.
      1c4d345d
  18. 08 Nov, 2013 1 commit
    • Thomas Markwalder's avatar
      [3087] Use IOServicePtr consistently in DHCP-DDNS · 4d07784b
      Thomas Markwalder authored
      Some classes were using references to isc::asiolink::IOService, others
      where using d2::IOServicePtr.  The latter is now used throughout for
      consistency as well as support for future, possible, multi-threaded
      implementation.
      4d07784b
  19. 16 Aug, 2013 1 commit
    • Thomas Markwalder's avatar
      [3075] Implemented main event loop in b10-dhcp-ddns · c39eb9bb
      Thomas Markwalder authored
      Added main process event loop to D2Process which is the
      primary application "object" in b10-dchp-ddns.
      
      Along the way it was necessary to adjust D2QueueManager to treat
      stopping as an asyncrhonous event when IO is pending. This
      requied a change in lib-dchp-ddns to have awareness of when
      IO is pending.
      
      Fixed a bug in D2 configuration parsing in which parsing a
      a subsequent configuration caused duplicate TSIGKeyInfo
      entries.
      c39eb9bb
  20. 04 Jul, 2013 1 commit
    • Marcin Siodelski's avatar
      [2977] Disable logger initialization in the D2 controller when unit testing · 7076a02b
      Marcin Siodelski authored
      When logger initialization was disabled for a unit test, a few NULL pointer
      assertions came up. This was because, some module commands were executed
      without arguments (NULL pointer objects). NULL pointers were not checked
      before logging arguments. This led to assertions. NULL pointers are now
      checked and "(no arg)" string is logged if present.
      7076a02b
  21. 02 Jul, 2013 1 commit
  22. 07 Jun, 2013 2 commits
  23. 06 Jun, 2013 1 commit
  24. 05 Jun, 2013 1 commit
  25. 02 Jun, 2013 1 commit
  26. 30 May, 2013 1 commit
    • Thomas Markwalder's avatar
      [2956] Interrim checkin to allow merge with 2955. Note a subsequent commit · fd911f47
      Thomas Markwalder authored
      will be required to make d2 build.
      Modified files:
          Makefile.am
          d2_log.cc
          d2_log.h
          d2_messages.mes
          d2.spec
          main.cc
          tests/Makefile.am
          tests/d2_test.py
      New files:
          d2_controller.cc
          d2_controller.h
          d_controller.cc
          d_controller.h
          spec_config.h
          tests/d2_controller_unittests.cc
          tests/d_controller_unittests.cc
          tests/d_test_stubs.cc
          tests/d_test_stubs.h
      fd911f47