2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

22653 Commits

Author SHA1 Message Date
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
Marcin Siodelski
afad9d6db0 [4106] Throw exception of the packet sent over IPC is invalid. 2015-11-04 14:26:59 +09: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
Marcin Siodelski
e42ed52098 [4106] Added new exception Dhcp4o6IpcError. 2015-11-04 13:09:13 +09:00
Francis Dupont
82912d2faf [3927] Fixed typo in previous change 2015-11-04 05:02:40 +01:00
Marcin Siodelski
0d6df693f0 [4106] Added additional tests for opening and closing IPC. 2015-11-04 13:01:29 +09: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
Francis Dupont
4e42ee425f [4091] Implemented, need tests 2015-11-03 10:25:17 +01:00
Francis Dupont
97e6332fd0 [4091] Renamed main (cf #4114) 2015-11-03 09:48:11 +01:00
Francis Dupont
e7026936c6 [4060a] Cleaned up (partially, i.e., keep ugly but working code) 2015-11-03 07:10:38 +01:00
Shawn Routhier
4f44fea70c Merge branch 'trac4090' Add support for OptionSubstring to the eval code trac4116_base 2015-11-02 16:40:38 -08:00
Shawn Routhier
d87d517b8e [trac4090] Update per second set of review comments
Remove change log entry as it isn't needed

Update eval log description in user guide.
2015-11-02 16:38:50 -08:00
Shawn Routhier
358927b0a2 [trac4090] Add the forgotten eval_log.c and eval_log.h files 2015-11-02 13:25:34 -08:00
Shawn Routhier
a32f2a2aaa [trac4090] Setup logger for eval 2015-11-02 13:10:06 -08:00