1. 17 Apr, 2015 1 commit
  2. 26 Nov, 2014 1 commit
  3. 21 Aug, 2014 1 commit
  4. 18 Aug, 2014 1 commit
  5. 01 Jul, 2014 1 commit
  6. 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
  7. 20 May, 2014 1 commit
  8. 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
  9. 02 Jul, 2013 1 commit
  10. 28 Jun, 2013 1 commit
  11. 18 Jun, 2013 1 commit
  12. 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