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

22424 Commits

Author SHA1 Message Date
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
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
Shawn Routhier
b36a613740 [trac4090] Update per review comments.
Update per the review comments except for the logging
stuff which will be done next.
2015-11-02 11:22:23 -08:00
Thomas Markwalder
d85076b046 [3601] CSVLeaseFile4 and CSVLeaseFile6 now derive from VersionedCSVFile
src/lib/dhcpsrv/csv_lease_file4.h
src/lib/dhcpsrv/csv_lease_file4.cc
    - CSVLeaseFile4 now derives from VersionedCSVFile
    - initializes schema metadata not just column names
    - uses VersionedCSVFile methods rather than CSVFile methods

src/lib/dhcpsrv/csv_lease_file6.h
src/lib/dhcpsrv/csv_lease_file6.cc
    - CSVLeaseFile6 now derives from VersionedCSVFile
    - initializes schema metadata not just column names
    - uses VersionedCSVFile methods rather than CSVFile methods

src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
    - Added new unit tests:
    TEST_F(CSVLeaseFile4Test, mixedSchemaload)
    TEST_F(CSVLeaseFile4Test, tooFewHeaderColumns)
    TEST_F(CSVLeaseFile4Test, invalidHeaderColumn)
    TEST_F(CSVLeaseFile4Test, tooManyHeaderColumns)

src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    - Added new unit tests:
    TEST_F(CSVLeaseFile6Test, mixedSchemaLoad)
    TEST_F(CSVLeaseFile6Test, tooFewHeaderColumns)
    TEST_F(CSVLeaseFile6Test, invalidHeaderColumn)
    TEST_F(CSVLeaseFile6Test, tooManyHeaderColumns)
2015-11-02 11:14:56 -05:00
Thomas Markwalder
a54b110730 [3601] Added isc::util::VersionedCSVFile
src/lib/util/versioned_csv_file.h
src/lib/util/versioned_csv_file.cc
    New files which implement VersionedCSVFile, CSV file which can
    support mulitple schema versions

src/lib/util/tests/versioned_csv_file_unittest.h
src/lib/util/tests/versioned_csv_file_unittest.cc
    new files for Unit tests for VersionedCSVFile

src/lib/util/Makefile.am
    added new files

src/lib/util/csv_file.cc
    includes read error message if header fails to validate

src/lib/util/csv_file.h
    removed @todo for 3626, no longer applicable

src/lib/util/tests/Makefile.am
    added versioned_csv_file_unittest.cc
2015-11-02 10:49:40 -05:00
Francis Dupont
4a91a45e5b [master] Fixed 4o6subnetInterfaceId for not 64 bit machines (from hackathon94) trac4113_base 2015-11-02 05:10:45 +01:00
Marcin Siodelski
81467147e2 [master] Use LeaseMgrFactory::instance() rather than constructor.
This fixes issues reported by the coverity scans recently.
2015-11-02 12:30:58 +09:00
JINMEI Tatuya
cb1cb8737c Merge branch 'trac4111' 2015-11-01 11:19:24 +09:00
JINMEI Tatuya
2f163c531a [4111] constify 2015-11-01 11:02:02 +09:00
Francis Dupont
7f471c9621 [4111] Added an emptyOptionData unit test 2015-11-01 02:10:57 +01:00
Francis Dupont
12063e9660 [4111] Style in checkEmpty 2015-11-01 02:08:58 +01:00
Francis Dupont
cedbc8083e [3927] Added a defaultSpaceOptionDefTest unit test 2015-11-01 01:41:15 +01:00
Francis Dupont
2a9eaa438e [3927] Fixed spurious 4 in DHCPv6 guide 2015-11-01 01:14:11 +01:00
JINMEI Tatuya
febee6bc54 [4111] added a test case for an empty Option6AddrLst.
also renamed a local variable to coform to coding guideline (don't use
the camel style for variables)
2015-11-01 08:51:51 +09:00
Tomek Mrugalski
89efd6970a [master] AUTHORS updated after recent changes. 2015-10-31 20:55:34 +09:00
Tomek Mrugalski
042c5348e4 [master] Merge branch 'trac4105' (4o6 configuration parameters) 2015-10-31 20:36:55 +09:00
Tomek Mrugalski
7e2a376081 [4105] Grammar fixed. 2015-10-31 20:34:38 +09:00
Tomek Mrugalski
115a407148 [4105] config parser now uses getOptionalParam() methods. 2015-10-31 20:33:29 +09:00
Tomek Mrugalski
51d5c00f67 [4105] Changes after review:
- getters/setters implemented in Cfg4o6.
 - extra space removed.
2015-10-31 20:24:04 +09:00
Francis Dupont
5df470d063 [master] Finished trac4027 aka Pkt4o6 merge trac4110_base 2015-10-31 11:40:42 +01:00
Tomek Mrugalski
104187287c [master] Merge branch 'master' of ssh://git.kea.isc.org/git/kea 2015-10-31 19:32:06 +09:00
Tomek Mrugalski
4ff6f946cd [master] Merge remote-tracking branch 'github/master' 2015-10-31 19:31:13 +09:00
JINMEI Tatuya
47a7a6d11f [4027] removed an unused variable
(besides, this type of file-static definition is dangerious - it can lead to
static initialization fiasco).
2015-10-31 19:02:23 +09:00
JINMEI Tatuya
7709b15393 [4027] added some explanatory comments for Pkt4o6::pack(). 2015-10-31 19:01:02 +09:00
JINMEI Tatuya
0fe570f5f1 [4027] added some references 2015-10-31 18:57:59 +09:00
JINMEI Tatuya
2accef346a Merge branch 'trac4027' of github.com:isc-projects/kea into trac4027
with resolving conflict (the HEAD version wasn't complete)
	src/lib/dhcp/tests/pkt4o6_unittest.cc
2015-10-31 18:49:53 +09:00