diff --git a/README.md b/README.md index 05d21fff09a95f97af71bbdc7551f0bb15cc2b78..dfbc65d4a192de3886203a18034c4ff162fa72d9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[PACKAGE]: ../../raw/master/mkp/bgp_topology-0.0.4-20240116.mkp "bgp_topology-0.0.4-20240116.mkp" +[PACKAGE]: ../../raw/master/mkp/bgp_topology-0.0.4-20250302.mkp "bgp_topology-0.0.4-20250302.mkp" # BGP Topology This plugin will create a Network Visualization Topology from the Peer relations of your _BGP peer services_ in Checkmk. diff --git a/mkp/bgp_topology-0.0.4-20250302.mkp b/mkp/bgp_topology-0.0.4-20250302.mkp new file mode 100644 index 0000000000000000000000000000000000000000..02e7d57e09188226bbc46b700dae3f0c9c6409c7 Binary files /dev/null and b/mkp/bgp_topology-0.0.4-20250302.mkp differ diff --git a/source/cmk_addons_plugins/bgp_topology/constants.py b/source/cmk_addons_plugins/bgp_topology/constants.py index 0ca394efe4ffcc2398d3780d00662bfde3e7e846..db10bb94055943125209218d8aadc39f033b62d1 100644 --- a/source/cmk_addons_plugins/bgp_topology/constants.py +++ b/source/cmk_addons_plugins/bgp_topology/constants.py @@ -13,7 +13,7 @@ __AUTHOR__ = 'thl-cmk[at]outlook[dot]com' __URL__ = 'https://thl-cmk.hopto.org/gitlab/checkmk/vendor-independent/bgp_topology' __USAGE__ = '~/local/lib/python3/cmk_addons/plugins/bgp_topology/libexec/check_bgp_topology --make-default --host bgp1' -__VERSION__ = '0.0.4-20250116' +__VERSION__ = '0.0.4-20250302' from typing import Final diff --git a/source/cmk_addons_plugins/bgp_topology/lib/bgp_topology.py b/source/cmk_addons_plugins/bgp_topology/lib/bgp_topology.py index 4d4222124ca38c2385fce7d83035874e6eefa212..55b60ac50f364374f7833c26d485d0b9e1419dfe 100644 --- a/source/cmk_addons_plugins/bgp_topology/lib/bgp_topology.py +++ b/source/cmk_addons_plugins/bgp_topology/lib/bgp_topology.py @@ -13,7 +13,8 @@ # fixed handling of anchors # changed topology name to be always BGP_{host} # 2025-01-04: changed output directory to host name only -# 2025-0116: fixed missing lib/args.py in MKP package +# 2025-01-16: fixed missing lib/args.py in MKP package (LRavelo[at]fsx[dot]com) +# 2025-03-02: reordered details output from collections.abc import MutableMapping, MutableSequence, Sequence from dataclasses import dataclass @@ -259,12 +260,12 @@ def create_bgp_topology(params: Params | None) -> int: summary.append(f'Connections: {len(connections.topo_connections)}') details.append(f'Connections: {len(connections.topo_connections)}') - details.append(f'Written to: {BASE_TOPO_PATH}/{sub_directory}/data_{TOPOLOGY_NAME.lower()}.json') - value = (time_ns() - start_time) / 1e9 summary.append(f'Time taken: {render.timespan(value)}') details.append(f'Time taken: {render.timespan(value)}') + details.append(f'Written to: {BASE_TOPO_PATH}/{sub_directory}/data_{TOPOLOGY_NAME.lower()}.json') + details.append(f'Plugin version: {__VERSION__}') perf_data = Metric( diff --git a/source/packages/bgp_topology b/source/packages/bgp_topology index 0635daa1a54f3213f05ac9326ad27d0b98048126..c24f03e93c0114ba241770a2a7df5d555e66170c 100644 --- a/source/packages/bgp_topology +++ b/source/packages/bgp_topology @@ -33,7 +33,7 @@ 'bgp_topology/lib/args.py']}, 'name': 'bgp_topology', 'title': 'BGP peer topology', - 'version': '0.0.4-20240116', + 'version': '0.0.4-20250302', 'version.min_required': '2.3.0b1', 'version.packaged': 'cmk-mkp-tool 0.2.0', 'version.usable_until': '2.4.0b1'}