From 1da2d9678278770581edc816fd36788a88b6773e Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Sat, 3 Jun 2023 16:15:43 +0000 Subject: [PATCH] Delete inv_juniper_hw_modules.py --- web/plugins/wato/inv_juniper_hw_modules.py | 63 ---------------------- 1 file changed, 63 deletions(-) delete mode 100644 web/plugins/wato/inv_juniper_hw_modules.py diff --git a/web/plugins/wato/inv_juniper_hw_modules.py b/web/plugins/wato/inv_juniper_hw_modules.py deleted file mode 100644 index 1dd1865..0000000 --- a/web/plugins/wato/inv_juniper_hw_modules.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# - - -from cmk.gui.i18n import _ -from cmk.gui.plugins.wato import ( - HostRulespec, - rulespec_registry, - RulespecGroup, -) -from cmk.gui.valuespec import ( - Dictionary, - FixedValue, - TextAscii, - ListChoice, -) - -from cmk.gui.plugins.wato.inventory import ( - RulespecGroupInventory, -) - -_removecolumns = [ - ('chassis_clei_code', 'Chassis CLEI code'), - ('chassis_descr', 'Chassis description'), - ('chassis_id', 'Chassis ID'), - # ('installed_at', 'Installed at'), - ('model', 'Model'), - ('type', 'Type (OID)'), -] - - -def _valuespec_inv_juniper_hw_modules(): - return Dictionary( - title=_('Juniper hardware inventory'), - elements=[ - ('allparts', - FixedValue( - True, - title=_('Inventory parts without serial number'), - totext=_(''), - default_value=False, - )), - ('removecolumns', - ListChoice( - title=_('List of columns to remove'), - help=_('information to remove from inventory'), - choices=_removecolumns, - default_value=[ - ], - )), - ], - ) - - -rulespec_registry.register( - HostRulespec( - group=RulespecGroupInventory, - match_type="dict", - name="inv_parameters:inv_juniper_hw_modules", - valuespec=_valuespec_inv_juniper_hw_modules, - )) -- GitLab