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
Stephen Morris
68f02accb4 [3259] Changes after review
1. Updated Kea guide to note that removing the hooks-libraries
   configuration element does not always have the expected effect.
2. Moved some documentation from the dhcp_parsers.cc file to the .h file.
3. Expanded checking of the contents of the hooks-libraries configuration
   element.
2015-11-09 12:41:52 +00:00
Francis Dupont
b25f8ac286 [4088fd] Added more new unit tests 2015-11-09 13:19:14 +01:00
Francis Dupont
7e64f067b3 [4088fd] Added hexstring parsing unit tests 2015-11-09 13:03:13 +01:00
Francis Dupont
29282dfa0f [4088fd] Assume the parser produces only well typed expressions trac4088fd_fulltyped 2015-11-06 14:08:09 +01:00
Francis Dupont
2760bbdf57 [4088fd] Split the syntax into untyped/typed trac4088fd_typed 2015-11-06 13:38:09 +01:00
Francis Dupont
65b1dd3dae [4088fd] Added some parser unit tests trac4088fd_untyped 2015-11-06 11:05:22 +01:00
Francis Dupont
92e9995c0e [4088fd] Fixed error handling trac4088fd_error 2015-11-06 09:29:44 +01:00
Francis Dupont
b15ab911e8 [4088fd] Added substring parsing 2015-11-06 07:49:54 +01:00
Francis Dupont
f09f3ea39c [4088fd] Fixed most of C++ problems trac4088fd_cpp 2015-11-06 07:29:41 +01:00
Francis Dupont
f18bc3cdb1 [4088fd] Renamed file to file_ 2015-11-06 04:00:23 +01:00
Francis Dupont
4c9be73b01 [4088fd] Regenerated flex/bison trac4088fd_option 2015-11-06 03:32:26 +01:00
Francis Dupont
c047539477 [4088fd] Moved option from scanner to parser 2015-11-06 03:31:53 +01:00
Francis Dupont
e9cca43872 [4088fd] Regenerated flex/bison trac4088fd_hexstring 2015-11-06 03:08:40 +01:00
Francis Dupont
18906ef111 [4088fd] Added hexstring support 2015-11-06 03:05:49 +01:00
Francis Dupont
6ad2a68b32 [4088fd] Regenerated flex/bison trac4088fd_namespace 2015-11-06 02:39:56 +01:00
Francis Dupont
67be085c5b [4088fd] Added new eval_context_decl.h include 2015-11-06 02:39:30 +01:00
Francis Dupont
7812831f01 [4088fd] [4088fd] Fixed namespace 2015-11-06 02:33:22 +01:00
Francis Dupont
f468584b23 [4088fd] [4088fd] Updated lexer.cc to flex 2.5.39 2015-11-06 02:27:11 +01:00
Francis Dupont
11bc4b3cfc [4088] Finished merge of trac4091 from master trac4088fd_base 2015-11-06 01:45:20 +01:00
Francis Dupont
88788b9f79 [master] Updated git hash trac4115_base 2015-11-05 23:40:42 +01:00
Francis Dupont
406153af95 [master] Finished merge of trac4091 (hex strings) 2015-11-05 23:37:26 +01:00
Francis Dupont
b9898e9e1d [master] Merged trac4091 (hex strings) 2015-11-05 23:35:24 +01:00
Francis Dupont
5c780bdd6e [4091] Changed to require at least one hexdigit 2015-11-05 23:32:15 +01:00
Francis Dupont
b957d9abfc [4088] spelling 2015-11-05 23:12:01 +01:00
Stephen Morris
c0173ba7b7 [4088] Miscellaneous edits to the developer documentation 2015-11-05 17:47:58 +00:00
Francis Dupont
d6178bcf6e [4088] Trivial fix to make it compile 2015-11-05 06:03:03 +01:00
Francis Dupont
7a4fd5ace0 [4088] Some trivial fixes 2015-11-05 05:46:24 +01:00
Francis Dupont
e15edffe3e [4094] Addressed comments (comments, complex test) 2015-11-05 03:32:00 +01:00
Francis Dupont
a496523c86 [4091] Addressed comments (0x prefix, deciding in constructor) 2015-11-05 02:39:28 +01:00
Francis Dupont
85a118414f [4091] Better odd check 2015-11-05 01:58:13 +01:00
Francis Dupont
e20f7d8334 [4091] Missed changes 2015-11-04 23:41:05 +01:00
Tomek Mrugalski
994efcca51 [4088] Exceptions added. 2015-11-05 00:43:56 +09:00
Tomek Mrugalski
e2896aa6b3 [4088] General smallish improvements in evaluation code 2015-11-05 00:34:12 +09:00
Tomek Mrugalski
06446ad17b [4088] Unnecessary makefile rule removed. 2015-11-04 23:29:08 +09:00
Tomek Mrugalski
b4c11fc8e8 [4088] Developer's guide written 2015-11-04 23:27:48 +09:00
Tomek Mrugalski
ac6a081567 [4088] Bison version is now detected during configure. 2015-11-04 22:03:51 +09:00
Shawn Routhier
4ba6b71ae8 [trac4094] Fix some typos during the review 2015-11-03 22:07:39 -08:00
Francis Dupont
b8cfb9d265 [master] Updated git hash 2015-11-04 06:14:54 +01:00
Francis Dupont
c7460e8492 [master] Finished merge of trac3927 (default in option-def) 2015-11-04 06:13:50 +01:00
Francis Dupont
f24c97d08a [master] Merged trac3927 (default in option-def) 2015-11-04 05:55:49 +01:00
Francis Dupont
82912d2faf [3927] Fixed typo in previous change 2015-11-04 05:02:40 +01:00
Marcin Siodelski
22fdeb549e [3259] Corrected a typo. 2015-11-04 11:31:57 +09:00
Francis Dupont
812b9eb21b [3927] Addressed minor comments 2015-11-04 03:24:03 +01:00
Francis Dupont
11d2ad4a5b [4094] Added evaluate() unit tests 2015-11-04 03:11:33 +01:00
Francis Dupont
1937ffb986 [4094] Added evaluate function 2015-11-04 02:07:32 +01:00
Francis Dupont
b4564e3f8f [4116] Define EvalNotBoolError 2015-11-04 01:20:01 +01:00
Thomas Markwalder
91a9427f7f [3601] Added discussion of memfile lease file upgrading to admin guide 2015-11-03 14:51:21 -05:00
Thomas Markwalder
e60cbf1d41 [3601] Added unit tests for automatic LFC upgrade
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
    Added two new unit tests to verify lease file upgrade
    via automatic LFC invocation:
        TEST_F(MemfileLeaseMgrTest, leaseUpgrade4)
        TEST_F(MemfileLeaseMgrTest, leaseUpgrade6)
2015-11-03 14:21:02 -05:00
Thomas Markwalder
64a51b84a3 [3601] Memfile_LeaseMgr now runs LFC automatically if lease files need upgrading
Memfile_LeaseMgr loads the lease files during instantiation. If it detects
that any of the files loaded are out of date, it will invoke LFC directly,
whether or not LFC is enabled.

src/lib/dhcpsrv/dhcpsrv_messages.mes
    added two new log messages:
        DHCPRSV_MEMFILE_UPGRADING_LEASE_FILES
        DHCPSRV_MEMFILE_NEEDS_UPGRADING

src/lib/dhcpsrv/lease_file_loader.h
    LeaseFileLoader::load() - emits DHCPSRV_MEMFILE_NEEDS_UPGRADING log
    when an out of date file is detected

src/lib/dhcpsrv/memfile_lease_mgr.cc
    LFCSetup::setup() - added run_once_now parameter, which causes the
    method to invoke the LFC callback immediately, regardless of the value
    of LFC interval.
    Memfile_LeaseMgr::Memfile_LeaseMgr() - added logic to track if
    files loaded need upgrading and pass that into lfcSetup()

    Memfile_LeaseMgr::loadLeasesFromFiles() - change to return a boolean
    true if any of the files loaded need upgrading.

    Memfile_LeaseMgr::lfcSetup() - added upgrade_needed parameter, which
    is passed through to LFCSetup::setup() as "run_once_now"
2015-11-03 10:53:28 -05:00
Thomas Markwalder
72a9ea19e2 [3601] Added methods to VersionedCSVFile for tracking when updating is needed
src/lib/util/csv_file.h
    Made recreate() virtual

src/lib/util/versioned_csv_file.h
src/lib/util/versioned_csv_file.cc
    Added several methods to VersionedCSVFile:

    getValidColumnCount() - returns number of valid columns in header

    recreate() - wraps base class method, ensuring valid column
    count gets set to number of defined columns for new files

    needsUpgrading() - returns bool true if file schema is out of date

    getInputSchemaVersion() - returns schema version found in file

    getSchemaVersion() - returns current schema version

    getVersionedColumn() - returns the column definition for a given index

src/lib/util/tests/versioned_csv_file_unittest.cc
    Added checks for new methods to existing tests
2015-11-03 10:03:26 -05:00