From c59e0f9df850b50dbce2d30d1aa2e546b90179c3 Mon Sep 17 00:00:00 2001
From: thl-cmk <thl-cmk@outlook.com>
Date: Fri, 9 Jun 2023 16:36:45 +0000
Subject: [PATCH] Delete inv_cisco_eox.py

---
 web/plugins/wato/inv_cisco_eox.py | 95 -------------------------------
 1 file changed, 95 deletions(-)
 delete mode 100644 web/plugins/wato/inv_cisco_eox.py

diff --git a/web/plugins/wato/inv_cisco_eox.py b/web/plugins/wato/inv_cisco_eox.py
deleted file mode 100644
index b0f775a..0000000
--- a/web/plugins/wato/inv_cisco_eox.py
+++ /dev/null
@@ -1,95 +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  :
-#
-# 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,
-    FixedValue,
-    ListOfStrings,
-    ListChoice,
-)
-
-from cmk.gui.plugins.wato.inventory import (
-    RulespecGroupInventory,
-)
-
-_removecolumns_inv_cisco_eox = [
-    #    ('ProductIDDescription', 'PID Description'),
-    ('LinkToProductBulletinURL', 'EOL bulletin URL'),
-    ('EndOfSecurityVulSupportDate', 'End of service vulnerability support'),
-    ('EndOfSWMaintenanceReleases', 'End of software maintenance releases'),
-    ('EndOfRoutineFailureAnalysisDate', 'End of routine failure analysis'),
-    ('MigrationProductId', 'Migration PID'),
-    ('MigrationInformation', 'Migration information'),
-    ('MigrationProductInfoURL', 'Migration PID URL'),
-    ('MigrationProductName', 'Migration product name'),
-]
-
-
-def _valuespec_inv_cisco_eox():
-    return Dictionary(
-        title=_('Cisco EoX staus'),
-        elements=[
-
-            ('always_use_serial',
-             FixedValue(
-                 True,
-                 title=_('always use serial number'),
-                 help=_('if true, CMK will request Cisco EoX information via serial number (default is use PID)'),
-             )),
-            ('removecolumns',
-             ListChoice(
-                 title=_('remove columns'),
-                 help=_('remove information from EoX report'),
-                 choices=_removecolumns_inv_cisco_eox,
-                 default_value=[
-                     'EndOfSecurityVulSupportDate',
-                     'EndOfSWMaintenanceReleases',
-                     'EndOfRoutineFailureAnalysisDate',
-                     'MigrationInformation',
-                     'MigrationProductInfoURL',
-                     'MigrationProductName',
-                 ],
-             )),
-            ('PID_black_list',
-             ListOfStrings(
-                 title=_('drop Product IDs beginning with'),
-                 orientation='horizontal',
-                 help=_('there will be no request for the following PID'),
-             )),
-            ('PID_bad_list',
-             ListOfStrings(
-                 title=_('request EoX information for the following Product IDs via serial number'),
-                 orientation='horizontal',
-                 help=_('the EoX request for the following PID will by via serial number'),
-             )),
-            ('SN_black_list',
-             ListOfStrings(
-                 title=_('drop entrys with the following serial number(s)'),
-                 orientation='horizontal',
-                 help=_('there will be noe EoX request for the following serial numbers'),
-             )),
-        ],
-    )
-
-
-rulespec_registry.register(
-    HostRulespec(
-        group=RulespecGroupInventory,
-        match_type='dict',
-        name='inv_parameters:inv_cisco_eox',
-        valuespec=_valuespec_inv_cisco_eox,
-    ))
-- 
GitLab