2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 15:05:16 +00:00
Commit Graph

22978 Commits

Author SHA1 Message Date
Marcin Siodelski
d8470a1407 [3874] Added DUID factory class in libdhcp++. 2015-11-17 20:31:50 +01:00
Thomas Markwalder
db990992e4 [4096] kea-dhcp6 now parses client class definitions list
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
2015-11-17 13:46:02 -05:00
Thomas Markwalder
a419556f01 [4096] kea-dhcp4 now parses client class definitions list
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
2015-11-17 13:28:40 -05:00
Thomas Markwalder
559c0a696a [4096] Added client class dictionary to SrvConfig
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
2015-11-17 10:53:05 -05:00
Thomas Markwalder
87ed3316ec [4096] Added copy constructors and equality tools to client class storage
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
2015-11-17 09:07:54 -05:00
Francis Dupont
c4557eef26 [master] Updated git hash 2015-11-17 14:41:25 +01:00
Francis Dupont
18321bf85f [master] Finished merge of trac4125 (parser build) 2015-11-17 14:40:45 +01:00
Francis Dupont
f4bf83b15c [master] Merge trac4125 (parser build) 2015-11-17 14:30:35 +01:00
Thomas Markwalder
dd80413a61 [4096] Added parsers for client class definitions
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)
2015-11-16 13:29:38 -05:00
Francis Dupont
809dc82912 [4125] Updated *.hh timestamps 2015-11-15 06:54:06 +01:00
Francis Dupont
2c39600ea5 [4125] Fixed variable init (BTW a false positive as ctx.error throws) 2015-11-14 21:54:29 +01:00
Francis Dupont
14e1063618 [4125] Made the parser target dependent on --enable-generate-parser 2015-11-14 20:17:01 +01:00
Francis Dupont
eca58144d4 [4201] Second attempt with a better fix 2015-11-14 19:35:40 +01:00
Francis Dupont
1e9e05b085 [master] Added *.hh files as sources 2015-11-14 19:18:38 +01:00
Francis Dupont
f3791f1bb3 [4201] Fixed DISTCHECK_CRYPTO_CONFIGURE_FLAG for Botan 2015-11-14 18:40:06 +01:00
Francis Dupont
e1e91c6c05 [master] Restored *.hh timestamps trac4201_base 2015-11-14 15:28:01 +01:00
Francis Dupont
bca9b3cf72 [master] Changed *.hh timestamps 2015-11-14 15:27:30 +01:00
Francis Dupont
e2ec18f60b [master] Minor fix to configure.ac 2015-11-14 15:23:00 +01:00
Francis Dupont
ac04c52815 [master] Updated git hash 2015-11-14 15:10:58 +01:00
Francis Dupont
ac9eb312bf [master] Finished merge of trac4088 (client classification expression parser) 2015-11-14 15:09:06 +01:00
Francis Dupont
7058a4085d [master] Merged trac4088 (client classification expression parser) 2015-11-14 15:06:22 +01:00
Francis Dupont
ac00ace4dd [4088] Merged trac4088fd private branch 2015-11-14 15:03:35 +01:00
Francis Dupont
81ab4ec703 [4088fd] Added a generated date comment to avoid the "no commit because unchanged" #4125 issue 2015-11-14 08:39:27 +01:00
Francis Dupont
8197502648 [4094] Changed EvalNotBoolError to shared EvalTypeError 2015-11-13 23:21:13 +01:00
Francis Dupont
ef5973b564 [4121] Cloned LibDHCP::packOptions and improved the v4 version 2015-11-13 22:02:04 +01:00
Francis Dupont
751b714cfa [4088fd] Changed the syntax to unquote integers 2015-11-13 16:53:23 +01:00
Francis Dupont
f2021d663a [4088fd] Added protection against integer overflow trac4088fd_before_unquote 2015-11-13 16:16:23 +01:00
Thomas Markwalder
ceda1e2cd9 [4096] ClientClassDef now stores CfgOption not OptionCollection
The initial choice for storing options as an OptionCollection
in the ClientClassDef was incorrect.  They are now stored within
a CfgOption which is symmetrical with how they are stored globally
and in subnets.
2015-11-13 10:16:11 -05:00
Francis Dupont
01b370bd9d [4088fd] cleanup grammar (indent, no untyped) 2015-11-13 16:01:32 +01:00
Thomas Markwalder
645a757e70 [4117] Fixed ncr-protocol/ncr-format doc in admin guide
Descriptions of the two parameters, ncr-protocol and ncr-format
were swapped in three places (but hey, we were consistent!):

    doc/guide/ddns.xml
    doc/guide/dhcp4-srv.xml
    doc/guide/dhcp6-srv.xml
2015-11-12 11:05:10 -05:00
Stephen Morris
d719ccdf4c [master] ChangeLog for trac3259 trac4121_base 2015-11-12 12:50:53 +00:00
Stephen Morris
b2986b0b02 [master] Merge branch 'trac3259' 2015-11-12 12:48:30 +00:00
Francis Dupont
8d77665fab [master] Merge branch 'master' of ssh://git.kea.isc.org/git/kea 2015-11-11 22:55:38 +01:00
Francis Dupont
db57e8b01f [master] Trivial comment fix 2015-11-11 22:55:18 +01:00
Thomas Markwalder
797fada965 [master] Added ChangeLog entry 1046 for #3601 2015-11-11 15:24:43 -05:00
Thomas Markwalder
5810e81a21 [master] Removed periods from log messages
src/lib/dhcpsrv/dhcpsrv_messages.mes
2015-11-11 15:19:38 -05:00
Thomas Markwalder
ce4b0e42e8 [master] MemfileLeaseMgr now supports upgrading/downgrading lease files
Merged in branch 'trac3601'
2015-11-11 14:58:12 -05:00
Thomas Markwalder
71e6ef8777 [3601] More review comments
Minor log message and comment wording
2015-11-11 14:55:57 -05:00
Thomas Markwalder
ec133bf6ec [master] Added ChangeLog entry 1045 for #4095 trac4097_base 2015-11-11 11:23:44 -05:00
Francis Dupont
b233a68984 [4088fd] Removed unused File functions 2015-11-11 17:13:54 +01:00
Thomas Markwalder
1039a94245 [master] Added client class storgae classes to libdhcpsrv
Merged in #4095.
2015-11-11 11:05:28 -05:00
Francis Dupont
894bf2cf34 [master] Added a check on rcode avoiding unused errors 2015-11-11 17:02:12 +01:00
Francis Dupont
d80ac51e6f [4095] reindent 2015-11-11 16:21:04 +01:00
Francis Dupont
bb4d313b15 [4095] spelling & co 2015-11-11 16:11:15 +01:00
Francis Dupont
53754baaea [4095] spelling 2015-11-11 16:01:01 +01:00
Thomas Markwalder
2023588f8a [3601] Addressed additional review comments
doc/guide/admin.xml
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/lease_file_loader.h
    minor clean up, typos

src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    removed unnecessary use of scoped_ptr

src/lib/util/csv_file.cc
    CSVRow::trim() - replaced use of std::vector<>::erase with resise

src/lib/util/versioned_csv_file.h
src/lib/util/versioned_csv_file.cc
    VersionedCSVFile::next() - reorganized to use input_schema_state_
    VersionedCSVFile::columnCountError() - new convenience method
    minor cleanups
2015-11-11 09:59:40 -05:00
Francis Dupont
6561e8f895 [master] Updated git hash (forgotten) 2015-11-11 15:56:56 +01:00
Francis Dupont
6ae4da980b [4088fd] Moved option code range check to the parser, freeing INTEGER tokens 2015-11-11 15:33:00 +01:00
Stephen Morris
a0fe616b62 [master] Merge remote-tracking branch 'github/master'
Merged in change made to GitHub for ticket trac4111.
2015-11-11 14:08:25 +00:00
Francis Dupont
4c130bd7c8 [master] Finished merge of trac4060a (Kea multi-threaded) 2015-11-11 13:52:55 +01:00