From a258cfe3e607a911e285191e5271e245dc3ddb31 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Wed, 7 Jun 2023 16:25:32 +0000 Subject: [PATCH] Delete cisco_eigrp_interface.py --- web/plugins/wato/cisco_eigrp_interface.py | 76 ----------------------- 1 file changed, 76 deletions(-) delete mode 100644 web/plugins/wato/cisco_eigrp_interface.py diff --git a/web/plugins/wato/cisco_eigrp_interface.py b/web/plugins/wato/cisco_eigrp_interface.py deleted file mode 100644 index a180589..0000000 --- a/web/plugins/wato/cisco_eigrp_interface.py +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# License: GNU General Public License v2 - -# Author: thl-cmk[at]outlook[dot]com -# URL : https://thl-cmk.hopto.org -# Date : 2017-12-27 -# -# Check_MK cisco_eigrp_peer WATO plugin -# -from cmk.gui.i18n import _ -from cmk.gui.valuespec import ( - Dictionary, - TextAscii, - MonitoringState, - ListChoice, -) - -from cmk.gui.plugins.wato import ( - CheckParameterRulespecWithItem, - rulespec_registry, - RulespecGroupCheckParametersNetworking, -) - -_ignore_interfaces_auth = [ - (6, 'Ethernet CSMAD'), - (24, 'Loopback'), - (53, 'Proprietary Virtual (Cisco VLAN L3)'), - (131, 'Tunnel'), - (135, 'Layer 2 VLAN',), - (136, 'Layer 3 IP VLAN'), -] - - -def _parameter_valuespec_cisco_eigrp_interface(): - return Dictionary( - help=_(''), - elements=[ - ('ignore_interfaces_auth', - ListChoice( - title=_('no warning if EIRGP authentication not configured on selected interface types'), - help=_('no warning if EIRGP authentication not configured on selected interface types'), - choices=_ignore_interfaces_auth, - default_value=[], - )), - ('no_auth_state', - MonitoringState( - title=_('State to report when interface has no authentication configured'), - help=_( - 'State if an EIGRP enabled interface has no authentication configured. Default is critical'), - default_value=2, - ), - ), - - ('md5_auth_state', - MonitoringState( - title=_('State to report when interface uses MD5 authentication'), - help=_( - 'State if an EIGRP enabled interface uses an MD5 hash as authentication method. Default is warning'), - default_value=1, - ), - ), - ], - ) - - -rulespec_registry.register( - CheckParameterRulespecWithItem( - check_group_name='cisco_eigrp_interface', - group=RulespecGroupCheckParametersNetworking, - item_spec=lambda: TextAscii(title=_('Cisco EIGRP interface'), ), - match_type='dict', - parameter_valuespec=_parameter_valuespec_cisco_eigrp_interface, - title=lambda: _('Cisco EIGRP interface'), - )) -- GitLab