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 1dd1865eeebf90c5e4ca0d990e36ef6a28c1eb78..0000000000000000000000000000000000000000 --- 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, - ))