2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

4446 Commits

Author SHA1 Message Date
Francis Dupont
9e208d0248 [#1387] Checkpoint: updated doc 2024-09-04 15:09:40 +02:00
Andrei Pavel
ba861d871e
[#3556] release changes 2024-08-26 17:00:03 +03:00
Andrei Pavel
d56adac4e3
[#1945] fix building docs from tarball
- Move tools/* EXTRA_DISTs inside tools/Makefile.am because that's where
  they belong.
- Add check-messages.py to EXTRA_DIST in tools/Makefile.am to allow
  someone who downloads the tarball to regenerate the entire message
  documentation just like before.
- Add debug-messages.rst and kea-messages.rst to the tarball so that
  they are not forced to use check-messages.py to regenerate message
  documentation.
- Add singlehtml to all rule. It is the only type of docs that are not
  built by default.
2024-08-23 00:59:01 +03:00
Andrei Pavel
8c80464384
[#3513] address review
- fix documentation
- show null on system-time and clock-skew when uninitialized
- add UT CommunicationStateTest.getReportWithClockSkewTest
2024-08-22 17:23:15 +03:00
Andrei Pavel
5bbf2077be
[#3513] add HA clock skew to status-get 2024-08-22 17:22:45 +03:00
Andrei Pavel
e2f139f7f9
[#1945] address review
- add DBGLVL_TRACE_MAX
- generate debug-messages.rst automatically on make -C doc/sphinx
2024-08-22 15:48:12 +03:00
Andrei Pavel
317af481f8
[#1945] address review
- generate kea-messages.rst automatically on make -C doc/sphinx
- add disclaimer header that debug-messages.rst and kea-messages.rst are
  generated
- minor changes to debug level variable names
- do not write section "Messages printed" in tools/check-messages.py if
  there are no messages
2024-08-22 15:48:11 +03:00
Andrei Pavel
49392bf857
[#1945] default to determining list of files automatically in api2doc.py and mes2doc.py 2024-08-22 15:47:24 +03:00
Andrei Pavel
a56fb8d6c6
[#1945] generate kea-messages.rst a priori
This allows us to document premium messages in the public ARM without
having to hand out a copy of the premium sources to readthedocs.
2024-08-22 15:47:24 +03:00
Andrei Pavel
571cd571bc
[#1945] add ARM section for debug messages indexed by log level 2024-08-22 15:47:24 +03:00
Andrei Pavel
53f8882623
[#1945] add missing messages and premium messages to the ARM
Apart from premium, messages from these files were missing:
- perfmon_messages.mes
- pgsql_cb_messages.mes
- run_script_messages.mes
- fuzz_messages.mes
2024-08-22 15:47:24 +03:00
Andrei Pavel
923a6df3b6
[#1945] minor fix in ARM: removed extraneous backquotes 2024-08-22 15:47:23 +03:00
Andrei Pavel
08caaec04a
[#3524] unrelated, but missed in #3522: add changelog.dox to tarball 2024-08-22 15:35:19 +03:00
Francis Dupont
f09ef66d9d [#3483] Address the comment 2024-08-22 10:39:00 +02:00
Francis Dupont
e8e7097195 [#3483] Updated RBAC doc 2024-08-22 10:39:00 +02:00
Francis Dupont
b27b3b697a [#3477] Addressed comments 2024-08-21 11:19:17 +02:00
Francis Dupont
5ef7c6fe76 [#3477] Updated shell.rst 2024-08-21 11:18:46 +02:00
Francis Dupont
1f88309d57 [#3477] First attempt 2024-08-21 11:17:44 +02:00
Slawek Figiel
282ce9a153 [#3522] Add square brackets 2024-08-01 19:57:52 +00:00
Slawek Figiel
52186764d1 [#3522] Modify docs 2024-08-01 19:57:52 +00:00
Slawek Figiel
fc7b9a72a4 [#3522] Fix whitespace 2024-08-01 19:57:52 +00:00
Slawek Figiel
bf52561cae [#3522] Update devel docs 2024-08-01 19:57:52 +00:00
Francis Dupont
bf4ed59d63 [#3477] Making socket name/address exclusive (1) 2024-08-01 09:23:54 +02:00
Razvan Becheriu
6847ba1bda [#3477] fixed comments and unittests 2024-08-01 09:23:54 +02:00
Francis Dupont
797c118ab2 [#3477] Checkpoint before regen 2024-08-01 09:23:53 +02:00
Francis Dupont
78ddd7b9df [#3477] Checkpoint before regen 2024-08-01 09:23:53 +02:00
Francis Dupont
97e0638daa [#3477] Updated dhcp4 syntax 2024-08-01 09:23:53 +02:00
Francis Dupont
3143a1966d [#3479] Removed control-socket from DB doc 2024-07-18 19:49:23 +03:00
Francis Dupont
0975949b9c [#3094] Finished tests and doc 2024-07-18 14:45:25 +02:00
Andrei Pavel
6b988f8cc8
[#3287] address review 2024-06-20 18:52:09 +03:00
Andrei Pavel
9c35a4db68
[#3287] fix pylint warnings
- C0115: Missing class docstring (missing-class-docstring)
- C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
- C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
- C0206: Consider iterating with .items() (consider-using-dict-items)
- C0411: standard import "..." should be placed before "..." (wrong-import-order)
- C0415: Import outside toplevel (...) (import-outside-toplevel)
- C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
- E0001: Parsing failed: 'invalid syntax (<unknown>, line 2313)' (syntax-error)
- E0401: Unable to import '...' (import-error)
- E0602: Undefined variable 'l' (undefined-variable)
- R0205: Class 'VagrantEnv' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
- E1101: Instance of 'NSECBASE' has no 'dump_fixedpart' member (no-member)
- E1123: Unexpected keyword argument 'capture' in method call (unexpected-keyword-arg)
- R0902: Too many instance attributes (too-many-instance-attributes)
- R0913: Too many arguments (too-many-arguments)
- R0916: Too many boolean expressions in if statement (6/5) (too-many-boolean-expressions)
- R1717: Consider using a dictionary comprehension (consider-using-dict-comprehension)
- R1722: Consider using 'sys.exit' instead (consider-using-sys-exit)
- R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
- R1735: Consider using '{}' instead of a call to 'dict'. (use-dict-literal)
- W0102: Dangerous default value sys.argv[1:] (builtins.list) as argument (dangerous-default-value)
- W0102: Dangerous default value {} as argument (dangerous-default-value)
- W0106: Expression "[f.write('%02x' % x) for x in bin_address]" is assigned to nothing (expression-not-assigned)
- W0107: Unnecessary pass statement (unnecessary-pass)
- W0201: Attribute 'config' defined outside __init__ (attribute-defined-outside-init)
- W0404: Reimport '...' (imported line ...) (reimported)
- W0611: Unused import ... (unused-import)
- W0612: Unused variable '...' (unused-variable)
- W0613: Unused argument '...' (unused-argument)
- W0621: Redefining name '...' from outer scope (line 1471) (redefined-outer-name)
- W0622: Redefining built-in '...' (redefined-builtin)
- W0707: Consider explicitly re-raising using 'raise ... from ...' (raise-missing-from)
- W0718: Catching too general exception Exception (broad-exception-caught)
- W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
- W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
- W1308: Duplicate string formatting argument 'connection_type', consider passing as named argument (duplicate-string-formatting-argument)
- W1401: Anomalous backslash in string: '\/'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
- W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
- W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
- W4901: Deprecated module 'optparse' (deprecated-module)
- W4904: Using deprecated class SafeConfigParser of module configparser (deprecated-class)
2024-06-20 18:52:09 +03:00
Andrei Pavel
8e37580e59
[#3287] fix pycodestyle warnings
- E111 indentation is not a multiple of 4
- E117 over-indented
- E125 continuation line with same indent as next logical line
- E127 continuation line over-indented for visual indent
- E128 continuation line under-indented for visual indent
- E129 visually indented line with same indent as next logical line
- E131 continuation line unaligned for hanging indent
- E201 whitespace after '['
- E201 whitespace after '{'
- E202 whitespace before ')'
- E202 whitespace before ']'
- E202 whitespace before '}'
- E203 whitespace before '
- E203 whitespace before ','
- E222 multiple spaces after operator
- E225 missing whitespace around operator
- E228 missing whitespace around modulo operator
- E231 missing whitespace after ','
- E251 unexpected spaces around keyword / parameter equals
- E261 at least two spaces before inline comment
- E262 inline comment should start with '# '
- E265 block comment should start with '# '
- E301 expected 1 blank line, found 0
- E302 expected 2 blank lines, found 1
- E303 too many blank lines (2)
- E305 expected 2 blank lines after class or function definition, found 1
- E306 expected 1 blank line before a nested definition, found 0
- E401 multiple imports on one line
- E402 module level import not at top of file
- E501 line too long
- E502 the backslash is redundant between brackets
- E703 statement ends with a semicolon
- E713 test for membership should be 'not in'
- E722 do not use bare 'except'
- E741 ambiguous variable name 'l'
- W605 invalid escape sequence '\/'
2024-06-20 18:52:09 +03:00
Andrei Pavel
c0acd781c9
[#3287] fix bandit warnings 2024-06-20 18:52:09 +03:00
Razvan Becheriu
6f7d97c654 [#2914] extended documentation with for loops in scripts 2024-06-20 09:38:37 +00:00
Francis Dupont
1b8b3592da [#2878] Updated subnet-id section 2024-06-19 12:19:52 +00:00
Francis Dupont
286b0aeab8 [#2878] Improved note 2024-06-19 12:19:52 +00:00
Francis Dupont
d5dbaa4c07 [#2878] [#2878] Added the implicitly global note 2024-06-19 12:19:52 +00:00
Marcin Siodelski
a743174e37 [#3246] Add released state in ARM 2024-06-19 12:34:18 +02:00
Thomas Markwalder
5d86419105 [#3328] Addressed review comments
Revampe UTs
Replaced ave and average with mean throughout
2024-06-15 09:17:40 +02:00
Thomas Markwalder
da8046161d [#3328] More doc JSON fixes
And added missing api file

modified:   hooks-perfmon.rst
new file:   ../../../src/share/api/perfmon-get-all-durations.json
2024-06-15 09:17:39 +02:00
Thomas Markwalder
2045651627 [#3328] Corrected JOSN errors in doc
modified:   hooks-perfmon.rst
2024-06-15 09:17:39 +02:00
Thomas Markwalder
6f9989b6d2 [#3328] Doc updates
/doc/sphinx/api-files.txt
/src/share/api/api_files.mk
    Added new command files
        src/share/api/perfmon-control.json
        src/share/api/perfmon-get-all-durations.json

/doc/sphinx/arm/hooks-perfmon.rst
    Updated API section

/src/hooks/dhcp/perfmon/perfmon_mgr.cc
    Added "result-set-format" to get-all-durations results.
2024-06-15 09:17:39 +02:00
Thomas Markwalder
4889c3f9a3 [#3328] Output usecs; add permon-get-all-durations
Statistics and raw data return durations in microseconds instead
of milliseconds.  Add initial support for perfmon-get-all-durations.

/doc/sphinx/arm/hooks-perfmon.rst
    Updated to microseconds
    Updated perfmon-control command

/src/hooks/dhcp/perfmon/monitored_duration.*
    DurationKey::toElement()
    MonitoredDuration::toElement() - new functions

/src/hooks/dhcp/perfmon/perfmon_callouts.cc
    int perfmon_control()
    int perfmon_get_all_durations() - new functions

    int load() - register commands

/src/hooks/dhcp/perfmon/perfmon_config.cc
    PerfMonConfig::parse() - replace use of copy ctor

    PerfMonConfig::enable_monitoring_
    PerfMonConfig::stats_mgr_reporting_ - made std::atomic

/src/hooks/dhcp/perfmon/perfmon_messages.mes
    PERFMON_CMDS_CONTROL_ERROR
    PERFMON_CMDS_CONTROL_OK
    PERFMON_CMDS_GET_ALL_DURATIONS_ERROR
    PERFMON_CMDS_GET_ALL_DURATIONS_OK - new messages

/src/hooks/dhcp/perfmon/perfmon_mgr.cc
    PerfMonMgr::perfmonControlHandler()
    PerfMonMgr::perfmonGetAllDurationsHandler()
    PerfMonMgr::formatDurationDataAsElements()
    PerfMonMgr::formatDurationDataAsResultSet() - new functions

/src/hooks/dhcp/perfmon/tests/Makefile.am
    Added perfmon_cmds_unittests.cc

/src/hooks/dhcp/perfmon/tests/perfmon_config_unittests.cc
    Replaced use of copy ctor

/src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc
    Updated tests for microseconds
2024-06-15 09:17:39 +02:00
Francis Dupont
a78fa738f0 [#3170] Addressed last comment 2024-06-11 19:42:55 +02:00
Francis Dupont
dce8f0d3f3 [#3170] Addressed comments 2024-06-11 16:35:08 +02:00
Francis Dupont
d51e070042 [#3170] Added missing blank line 2024-06-11 16:34:08 +02:00
Francis Dupont
0c210f551a [#3170] Updated doc and ChangeLog 2024-06-11 16:33:29 +02:00
Andrei Pavel
8dcd1a9453
[#3433] add libasiodns section 2024-06-07 22:07:06 +03:00
Thomas Markwalder
9bbe6aa4dc [#2611] Updated ARM, added ChangeLog
/doc/sphinx/arm/ddns.rst
/doc/sphinx/arm/stats.rst
2024-06-07 14:55:57 +03:00
Andrei Pavel
37ff385e17
[#3431] release changes 2024-05-24 17:22:24 +03:00