2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

22505 Commits

Author SHA1 Message Date
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
Francis Dupont
60ad1417a5 [master] Merged trac4060a (Kea multi-threaded) 2015-11-11 13:50:07 +01:00
Thomas Markwalder
f3e7cffe3d [4095] Implemented new classes for storing client class definitions
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;
2015-11-10 15:40:00 -05:00
Thomas Markwalder
91a4978e30 [3601] Addressed review comments, added ability to downgrade
Several minor cleanup items based on review comments.  Implemented
support for downgrading files from newer schema versions:

doc/guide/admin.xml
    amended text on upgrading memfile to discuss downgrading

src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/lease_file_loader.h
    revamped log messages to accomodate downgrading

src/lib/dhcpsrv/memfile_lease_mgr.cc
src/lib/dhcpsrv/memfile_lease_mgr.h
    added commentary to MemfileLeaseMgr ctor
    automatic conversion logic accomdates both upgrading and downgrading

src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    replaced tooManyHeaderColumns test with downGrade test

src/lib/util/csv_file.h
src/lib/util/csv_file.cc
    added CSVRow::trim()

src/lib/util/tests/csv_file_unittest.cc
    added CSVRow.trim test

src/lib/util/tests/versioned_csv_file_unittest.cc
    added VersionedCSVFileTest.currentSchemaTest test
    replaced tooManyHeaderColumns test with downGrading test
    revamped tests to check  getInputSchemaState() and needsConversion()

src/lib/util/versioned_csv_file.h
    Updated commentary to describe downgrade support

src/lib/util/versioned_csv_file.cc
    enum InputSchemaState
    input_schema_state_
    input_header_count_
    getInputHeaderCount()
    getInputSchemaState()
    needsConversion()

    next(CSVRow& row) - now supports downgrading rows
    validateHeder() -  now throws if called when no schema has been defined,
    and supports downgrading rows
2015-11-10 09:20:44 -05:00
Francis Dupont
4730bc6494 [4088fd] Added number unit tests 2015-11-09 13:49:05 +01:00