1. 17 Nov, 2015 5 commits
    • Thomas Markwalder's avatar
      [4096] Move libeval up in lib/Makefile.am · b260200e
      Thomas Markwalder authored
          Now that libdhcpsrv depends on libeval, eval must be built first.
      b260200e
    • Thomas Markwalder's avatar
      [4096] kea-dhcp6 now parses client class definitions list · db990992
      Thomas Markwalder authored
          src/bin/dhcp6/json_config_parser.cc
              - createGlobalDhcp6ConfigParser() - creates ClientClassDefListParser
              for "client-classes" element
              - configureDhcp6Server() - runs the ClientClassDefListParser against
              the "client-classes" element
      
          src/bin/dhcp6/tests/config_parser_unittest.cc
              Added new tests for parsing client class definitions:
              TEST_F(Dhcp6ParserTest, clientClassDictionary)
              TEST_F(Dhcp6ParserTest, invalidClientClassDictionary)
      
          src/bin/dhcp6/dhcp6.spec
              Added global "client-classes" element
      db990992
    • Thomas Markwalder's avatar
      [4096] kea-dhcp4 now parses client class definitions list · a419556f
      Thomas Markwalder authored
      src/bin/dhcp4/json_config_parser.cc
          - createGlobalDhcp4ConfigParser() - creates ClientClassDefListParser
          for "client-classes" element
          - configureDhcp4Server() - runs the ClientClassDefListParser against
          the "client-classes" element
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          Added new tests for parsing client class definitions:
          TEST_F(Dhcp4ParserTest, clientClassDictionary)
          TEST_F(Dhcp4ParserTest, invalidClientClassDictionary)
      
      src/bin/dhcp4/dhcp4.spec
          Added global "client-classes" element
      a419556f
    • Thomas Markwalder's avatar
      [4096] Added client class dictionary to SrvConfig · 559c0a69
      Thomas Markwalder authored
      src/lib/dhcpsrv/parsers/client_class_def_parser.cc
          ClientClassDefListParser::commit() - pushes the newly built local
          dictionary to CfgMgr staging
      
      src/lib/dhcpsrv/srv_config.h
      src/lib/dhcpsrv/srv_config.cc
          Added client class dictionary member to SrvConfig
      
      src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
          TEST_F(ClientClassDefListParserTest, simpleValidList) - now
          verifies that ClientClassDefListParser::commit() pushes its
          local dictionary to CfgMgr staging.
      
      src/lib/dhcpsrv/tests/srv_config_unittest.cc
          Added support to test new client class dictionary member
      559c0a69
    • Thomas Markwalder's avatar
      [4096] Added copy constructors and equality tools to client class storage · 87ed3316
      Thomas Markwalder authored
      In anticipation adding client class storage to SrvConfig:
      
      src/lib/dhcpsrv/client_class_def.h
      src/lib/dhcpsrv/client_class_def.cc
          added copy contructor, equals() method, ==, != operators
          To ClientClassDef and ClientClassDictionary
      
      src/lib/dhcpsrv/tests/client_class_def_unittest.cc
          Added copyAndEquality tests for ClientClassDef and
          ClientClassDictionary
      87ed3316
  2. 16 Nov, 2015 1 commit
    • Thomas Markwalder's avatar
      [4096] Added parsers for client class definitions · dd80413a
      Thomas Markwalder authored
      New Files:
          parsers/client_class_def_parser.cc
          parsers/client_class_def_parser.h
          tests/client_class_def_parser_unittest.cc
      
      src/lib/dhcpsrv/parsers/Makefile.am
          Added entries for new files
          Added EXTRA_DIST entries for several files that were missing.
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.h
          Added typedef for OptionDataListParserPtr
      
      src/lib/dhcpsrv/tests/Makefile.am
          Added entries for new unitest file
      
      src/lib/dhcpsrv/tests/client_class_def_unittest.cc
          Fixed broken unit test TEST(ClientClassDef, cfgOptionBasics)
      dd80413a
  3. 13 Nov, 2015 1 commit
  4. 11 Nov, 2015 10 commits
  5. 10 Nov, 2015 1 commit
    • Thomas Markwalder's avatar
      [4095] Implemented new classes for storing client class definitions · f3e7cffe
      Thomas Markwalder authored
      src/lib/dhcpsrv/client_class_def.cc
      src/lib/dhcpsrv/client_class_def.h
      src/lib/dhcpsrv/tests/client_class_def_unittest.cc
          New files that define client class storage classes and tests
      
      src/lib/dhcp/classify.h
          Amended commentary to reflect how these classes are now being used.
      
      src/lib/dhcp/option.h
          Added typedefs:
              boost::shared_ptr<Option> OptionPtr;
              boost::shared_ptr<OptionCollection> OptionCollectionPtr;
      
      src/lib/dhcpsrv/Makefile.am
          Added entries for new files
      
      src/lib/dhcpsrv/tests/Makefile.am
          Added entries for new file
      
      src/lib/eval/token.h b/src/lib/eval/token.h
          Added typedef:
              boost::shared_ptr<Expression> ExpressionPtr;
      f3e7cffe
  6. 05 Nov, 2015 6 commits
  7. 04 Nov, 2015 6 commits
  8. 03 Nov, 2015 5 commits
  9. 02 Nov, 2015 5 commits