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

35798 Commits

Author SHA1 Message Date
Andrei Pavel
4d04d9169b [#3198] add ChangeLog entry 2024-01-26 12:48:18 +02:00
Andrei Pavel
84bd162648 [#3198] add tests for empty yang option data 2024-01-26 12:48:18 +02:00
Andrei Pavel
b37853da57 [#3198] add expectEqWithDiff to testutils 2024-01-26 12:48:18 +02:00
Andrei Pavel
3f7e8d65e0 [#3198] fix reinstall.sh for YANG modules 2024-01-26 12:48:18 +02:00
Andrei Pavel
b10991e563 [#3198] change --edit to --import in docs
to avoid ambiguities caused by the merge operation in sysrepocfg --edit
2024-01-26 12:48:18 +02:00
Andrei Pavel
d87a3e0f05 [#3198] ignore errors when regenerating hashes
The script complains about hashes missing, but that is only temporary until they
are regenerated. A second call to check-hashes.sh will now properly check them
at the end.
2024-01-26 12:48:18 +02:00
Andrei Pavel
2f0dd250cc [#3198] bump up revisions for YANG modules 2024-01-26 12:48:18 +02:00
Andrei Pavel
11de31d8ba [#3198] make data a key for option-data in code
- Add ability to set list element that only has keys in Translator::setItem.
- Explicitly set list elements in case they contain only keys which can
  be more common now that data is a key since it is likely one can have
  entries that only have code, space, and data.
- Handle no data as empty data when setting, and empty data as no data
  when getting. This avoids the need to add an empty "data" element to
  all options that lack it in all-options.json so that the unit tests
  pass. But this goes to show that data-less entries may be encountered
  in production as well, so more importantly this caters to that
  scenario.
- Adjust data in kea4/all-options.json to not contain singlequotes.
  There was only one occurrence of it. This is a limitation related
  to unit testing only. Opened issue 3216 about it.
- Add missing tests that are not strictly related to the data key, but
  they are related to option data:
  - TranslatorOptionDataListTestv6.getEmpty
  - TranslatorOptionDataListTestv4.get
  - TranslatorOptionDataListTestv6.setEmpty
  - TranslatorOptionDataListTestv4.set
- Add unit tests:
  - TranslatorOptionDataListTestv4.optionsSameCodeAndSpace
  - TranslatorOptionDataListTestv6.optionsSameCodeAndSpace
- Add snippet that tests setting of list element with keys only in
  TranslatorTest.setItem.
2024-01-26 12:48:18 +02:00
Andrei Pavel
5202cd149b [#3198] add data as key for option-data in YANG modules
Setting mandatory for keys is redundant as mentioned in RFC 7950 section
7.8.2: Any "mandatory" statements in the key leafs are ignored.

So they were removed. This now makes it consistent with how data is
declared in option-data as well.
2024-01-26 12:46:36 +02:00
Andrei Pavel
223dc3aad3 [#3229] hammer.py prepare-system --just-configure 2024-01-26 11:02:14 +02:00
Andrei Pavel
fe4fdcc8d9 [#3123] add documentation for the peer-updates flag in radius 2024-01-25 10:14:03 +02:00
Razvan Becheriu
1b4d7b0293 [#3119] use range based for loop or BOOST_FOREACH 2024-01-22 17:49:59 +02:00
Razvan Becheriu
72f330320b [#3119] replace const auto with auto const 2024-01-22 17:33:26 +02:00
Razvan Becheriu
54dd674d0d [#3119] use auto const& whenever possible 2024-01-22 17:33:26 +02:00
Francis Dupont
1eb9c75f3f [#3119] Fixed some coverity reported defects 2024-01-22 17:33:26 +02:00
Piotrek Zadroga
78acb9cec0 [#3119] static cast time_t to uint32 2024-01-22 17:33:26 +02:00
Piotrek Zadroga
ff39af2b08 [#3119] correct auto in for-loops 2024-01-22 17:33:26 +02:00
Francis Dupont
107be4be7a [#3149] Rewrote getLeases6ByLink 2024-01-17 11:16:47 +01:00
Francis Dupont
5d23ed25f5 [#3149] Addressed comments 2024-01-17 11:06:16 +01:00
Francis Dupont
d84201cb87 [#3149] Added testGetLeases6SubnetIdPaged 2024-01-17 11:06:16 +01:00
Francis Dupont
511e9c43a4 [#3149] Moved to getLeases6 overload 2024-01-17 11:06:16 +01:00
Francis Dupont
7c84c8e880 [#3149] Simplified getLinks 2024-01-17 11:06:16 +01:00
Francis Dupont
032a8ad465 [#3149] Rewrote getLeases6ByLink 2024-01-17 11:06:16 +01:00
Francis Dupont
d73fc1466d [#3149] Fixed mysql admin tests 2024-01-17 09:48:36 +01:00
Francis Dupont
853961f402 [#3149] Removed old version tests 2024-01-17 09:48:36 +01:00
Francis Dupont
acb7102937 [#3149] Moved admin tests to last versions 2024-01-17 09:48:36 +01:00
Francis Dupont
02a49c0e7d [#3149] Added a new index 2024-01-17 09:48:36 +01:00
Piotrek Zadroga
cf22095d8e [#3074] addressed review comments 2024-01-15 12:03:39 +01:00
Piotrek Zadroga
4d4e87b1a3 [#3074] internal opt type refactor 2024-01-15 11:47:41 +01:00
Piotrek Zadroga
0712765f76 [#3074] addressed review comments 2024-01-10 17:39:41 +01:00
Piotrek Zadroga
21e80710fe [#3074] code cleaning 2024-01-10 12:46:42 +01:00
Piotrek Zadroga
d1d2d9eb40 [#3074] subnet_addr vars refactor 2024-01-10 10:26:46 +01:00
Piotrek Zadroga
86ed39acd5 [#3074] improve exceptions messages 2024-01-10 09:53:59 +01:00
Piotrek Zadroga
6f73965d0f [#3074] io address comment correction 2024-01-09 14:18:28 +01:00
Piotrek Zadroga
6ab11b941f [#3074] addressed review comments 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
7a9203dbfd [#3074] addressed review comments 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
f5a4dac97b [#3074] ARM update 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
3203d257a3 [#3074] UTs updated 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
4bb524efbe [#3074] option example update 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
9a5b751a3b [#3074] comments updated 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
79a331fae1 [#3074] option def validation 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
475a349a16 [#3074] introduce new OPT_CUSTOM_TYPE 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
e936f2d376 [#3074] add missing std ns 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
bda2a87f0c [#3074] added ChangeLog entry
Also, some other corrections.
2024-01-09 11:39:23 +01:00
Piotrek Zadroga
73edb9dcca [#3074] add more UTs 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
4bbb55da19 [#3074] code cleaning + docs 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
72225055c2 [#3074] unpack reworked 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
117cd7180b [#3074] change option type to binary 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
0a5c401898 [#3074] added some comments 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
097bfe5fe1 [#3074] adding UTs for option 121 2024-01-09 11:38:08 +01:00