1. 23 Jul, 2017 3 commits
  2. 29 Mar, 2017 1 commit
  3. 11 Mar, 2017 1 commit
  4. 07 Mar, 2017 2 commits
  5. 22 Feb, 2017 1 commit
  6. 17 Feb, 2017 1 commit
  7. 15 Feb, 2017 1 commit
    • Thomas Markwalder's avatar
      [5110] Addressed review comments part 1 · 0fe888f4
      Thomas Markwalder authored
          Fixed unused parameter errors
          Fixed doxygen errors
          Commentary changes
          Removed reference to .spec file from commentary
          TSIGKeyListParser now uses only one instance of TSIGKeyInfoParser
          src/bin/d2/d2_parser.yy -  added upper limit to port tests
          Updated unit tests to use "example.com"
      0fe888f4
  8. 01 Feb, 2017 1 commit
    • Thomas Markwalder's avatar
      [5110] DhcpConfigParser no longer used in libprocess or D2 · fc4a404d
      Thomas Markwalder authored
      src/lib/process/d_cfg_mgr.h
      src/lib/process/d_cfg_mgr.cc
          DCfgMgrBase::parseElement() - changed to void return
          DCfgMgrBase::createConfigParser() - deleted this method
          DCfgMgrBase::buildParams()
          DCfgMgrBase::buildAndCommit() - now only call parseElement()
      
      src/lib/process/tests/d_cfg_mgr_unittests.cc
          ParseElementMgr, ParseElementMgrTest - deleted, no longer
          relevant
      
      src/lib/process/testutils/d_test_stubs.h
      src/lib/process/testutils/d_test_stubs.cc
          ObjectParser - deleted this object
          DStubCfgMgr::createConfigParser() - deleted this method
          DStubCfgMgr::parseElement() - new method which
          replaces functionality formerly in createConfigParser
      
      src/bin/d2/d2_cfg_mgr.cc
      src/bin/d2/d2_cfg_mgr.h
          D2CfgMgr::createConfigParser() - deleted this method
          D2CfgMgr::parseElement() - changed to void return,
          and throws on unknown element id
      fc4a404d
  9. 26 Jan, 2017 2 commits
    • Thomas Markwalder's avatar
      [5110] Added support for setting configuration defaults to DCfgMgrBase · 1abb94ac
      Thomas Markwalder authored
      src/lib/process/d_cfg_mgr.h
      src/lib/process/d_cfg_mgr.cc
          DCfgMgrBase::setCfgDefaults() - new virtual method so derivations can
          insert default values prior into a configuration
      
          DCfgMgrBase::parseConfig() - added call to setCfgDefaults() prior to
          calling parseConfig().
      1abb94ac
    • Thomas Markwalder's avatar
      [5110] Added alternate parsing hooks into DController and DCfgMgrBase · 4a5e73f7
      Thomas Markwalder authored
      In order to accomodate bison parsing for JSON text and SimpleParser
      based element parsing, virtual methods were added to allow derivations
      to migrate.
      
      src/lib/process/d_cfg_mgr.h
      src/lib/process/d_cfg_mgr.cc
          DCfgMgrBase::parseElement() - new method to allow derivaitons
          to support alternate Element parsers on a element by element basis
      
          DCfgMgrBase::buildParams()
          DCfgMgrBase::buildAndCommit() - added call to parseElement()
      
      src/lib/process/d_controller.h
      src/lib/process/d_controller.cc
          DControllerBase::parseFile() - new method to allow derivations
          to use alternate JSON parsers
          DControllerBase::configFromFile() - added call to parseFile()
      4a5e73f7
  10. 24 Jan, 2017 1 commit
  11. 14 Dec, 2016 1 commit
  12. 01 Dec, 2016 2 commits
  13. 16 Dec, 2015 2 commits
  14. 23 Jun, 2015 1 commit
  15. 26 Nov, 2014 1 commit
  16. 21 Aug, 2014 1 commit
  17. 18 Aug, 2014 1 commit
  18. 26 Jun, 2014 2 commits
    • Thomas Markwalder's avatar
      [3436] D2 TSIGKeyInfo configuration errors now include position info. · 2d89d22a
      Thomas Markwalder authored
      Modified DCfgContextBase::getParam() variants to return the parameter's
      Element::Position.  This makes it available during parsing.
      
      Modified TSIGKeyInfoParser::build to validate parameters and use position
      in error messages.
      2d89d22a
    • Thomas Markwalder's avatar
      [3436] Added position info to top level parser creation in D2 · e10603ef
      Thomas Markwalder authored
      Added element position argument to DCfgMgrBase::createConfigParser(),
      so derivations have access to print position info unsupported top level
      element errors.
      
      Removed two log messages DCT_ORDER_ERROR and DCT_ORDER_NO_ELEMENT. These
      conditions are well explained in exceptions thrown and these logs just
      cluttered the log output.
      
      Removed extra text from DCTL_CONFIG_LOAD_FAIL and DCTL_PARSER_FAIL log
      messages. The log ID is self-explanatory and the underlying exceptions
      provide ample explanation of the error.  Makes the log output much easier
      to understand.
      
      Revised items-not-in-parse-order detection in DCfgMgrBase::parseConfig().
      Rather than complicated counting logic, objects are removed from the list
      as they are parsed.  Any left over were not in the parsing-order.
      
      Removed try-catch-throw from DCfgMgrBase::buildAndCommit. This method
      already throws its own exception. Catching, logging, and re-throwing
      exceptions from underneath it really just server to clutter the log.
      e10603ef
  19. 20 May, 2014 1 commit
  20. 07 May, 2014 1 commit
    • Thomas Markwalder's avatar
      [3268] Treat top-level scalars as a group of globals parameters · baa06740
      Thomas Markwalder authored
      Restructured DCfgMgrBase to group the top level elements in a configuration
      into scalars (strings, bools, ints, etc...) and objects (maps, lists, etc),
      and parse the scalars first, then objects.  This permits the top level
      scalars to be treated as a group of global parameters that are parsed first.
      
      Ordered parsing is now relegated to only object elements. Scalars are parsed
      first before any objects.
      
      Also added the ability to reset config manager's context and rather than
      than starting configuration parsing with a copy of the current context, it
      starts with an empty context.
      
      Modified unit tests accordingly.
      baa06740
  21. 01 Jul, 2013 1 commit
  22. 28 Jun, 2013 1 commit
  23. 20 Jun, 2013 1 commit
  24. 18 Jun, 2013 1 commit
  25. 12 Jun, 2013 1 commit
    • Thomas Markwalder's avatar
      [2957] Interrim check-in. This adds configuration management to · dac0b87d
      Thomas Markwalder authored
      D2. It introduces DCfgMgrBase, abstract class for processing updates
      to configuration, DCfgContext for storing configuration; and D2
      specific initial derivations of each, D2CfgMgr and D2CfgContext.
      These are skeletal derivations that will be expanded to handle
      DHCP-DDNS specific configuration. New files added:
      
        src/bin/d2/d_cfg_mgr.h
        src/bin/d2/d_cfg_mgr.cc
        src/bin/d2/d2_cfg_mgr.h
        src/bin/d2/d2_cfg_mgr.cc
        src/bin/d2/tests/d_cfg_mgr_unittests.cc
      dac0b87d