Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 747196b0ba7980ba79fcca688a0150ee8fea3e20
https://github.com/tribe29/checkmk/commit/747196b0ba7980ba79fcca688a0150ee8…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-05-04 (Mon, 04 May 2020)
Changed paths:
M cmk/base/snmp.py
M cmk/base/snmp_scan.py
M cmk/base/snmp_utils.py
A cmk/utils/snmp_cache.py
M cmk/utils/type_defs.py
M tests-py3/integration/cmk/base/snmp/test_snmp.py
Log Message:
-----------
Move snmp caching functions under utils
SNMP caching is used by `StoredWalkSNMPBackend` and other stuff
in `cmk.base`.
We therefore move the code out of `base`.
We do not move `get_single_oid()` yet because it pulls too much stuff
for one commit.
Also add three trivial helpers:
- `host_cache_contains(HostName) -> bool`
- `host_cache_get(HostName) -> List[str]`
- `host_cache_set(HostName, List[str]) -> None`
to avoid exposing the global `_g_walk_cache: Dict[HostName, List[str]]`
CMK-4218
Change-Id: I944bd878a21913112ab745f334633cc22d9dbfa0
Commit: 9cf8a1f9bb92491889a208faed02449d1b35eb37
https://github.com/tribe29/checkmk/commit/9cf8a1f9bb92491889a208faed02449d1…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-05-04 (Mon, 04 May 2020)
Changed paths:
M cmk/base/snmp.py
M cmk/utils/snmp_cache.py
Log Message:
-----------
Remove one layer violation
This patch removes a layer violation introduced in the preceding commit
and simplifies the code.
CMK-4218
Change-Id: I5f413cabce438985eff5c2fb814d916cf5cd7d28
Compare:
https://github.com/tribe29/checkmk/compare/ae40ca49cb75...9cf8a1f9bb92