Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 88ff90f0 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

Delete inv_cisco_suggestion.py

parent cd0b9a29
No related branches found
No related tags found
No related merge requests found
#!/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 :
#
# 2021-07-23: rewritten for CMK 2.0
#
from cmk.gui.i18n import _
from cmk.gui.plugins.wato import (
HostRulespec,
rulespec_registry,
)
from cmk.gui.valuespec import (
Dictionary,
ListOfStrings,
ListChoice,
)
from cmk.gui.plugins.wato.inventory import (
RulespecGroupInventory,
)
_removecolumns = [
('isSuggested', 'is suggested'),
('majorRelease', 'major release'),
('relDispName', 'release display name'),
('releaseFormat1', 'release format1'),
('releaseTrain', 'release train'),
('trainDispName', 'train display name'),
('mdfId', 'Metadata Framework ID '),
]
def _valuespec_inv_cisco_suggestion():
return Dictionary(
title=_('Cisco software suggestion'),
elements=[
('removecolumns',
ListChoice(
title=_('remove columns'),
help=_('remove information from report'),
choices=_removecolumns,
default_value=[
'isSuggested',
'majorRelease',
'relDispName',
'releaseFormat1',
'releaseTrain',
'trainDispName',
'mdfId',
],
)),
('PID_black_list',
ListOfStrings(
title=_('drop Product IDs beginning with'),
orientation='horizontal',
help=_('there will be no request for the following PID(s)'),
)),
],
)
rulespec_registry.register(
HostRulespec(
group=RulespecGroupInventory,
match_type='dict',
name='inv_parameters:inv_cisco_suggestion',
valuespec=_valuespec_inv_cisco_suggestion,
))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment