diff --git a/inv_cisco_wlc_aps_lwap.mkp b/inv_cisco_wlc_aps_lwap.mkp index cbcb520d395a934b6fc8cd7789202c262a3fcd06..c544e9ee70eca43847305a4e6fe0333ade3b9315 100644 Binary files a/inv_cisco_wlc_aps_lwap.mkp and b/inv_cisco_wlc_aps_lwap.mkp differ diff --git a/web/plugins/views/inv_wlc_aps_lwap.py b/web/plugins/views/inv_wlc_aps_lwap.py index 3414d8fbf4b1b93e62fb6b50d8541d0d3f48e017..fc35d902ee7c5979105c4a3cb0e9759b445b0139 100644 --- a/web/plugins/views/inv_wlc_aps_lwap.py +++ b/web/plugins/views/inv_wlc_aps_lwap.py @@ -1,10 +1,19 @@ #!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- +try: + from cmk.gui.plugins.views.inventory import ( + declare_invtable_view, + render_inv_dicttable, + ) +except: + pass + inventory_displayhints.update({ '.networking.wlan.controller.accesspoints_lwap:': {'title' : _('Access Points (CISCO-LWAPP-AP-MIB)'), - 'keyorder': ['name', 'if_mac_address', ], - # 'view' : 'invwlcapslwap_of_host', + 'render': render_inv_dicttable, + 'keyorder': ['name', 'if_mac_address', ], + 'view' : 'invwlcapslwap_of_host', }, '.networking.wlan.controller.accesspoints_lwap:*.name' : {'title': _('Name')}, '.networking.wlan.controller.accesspoints_lwap:*.if_mac_address' : {'title': _('MAC Address')}, @@ -61,4 +70,4 @@ inventory_displayhints.update({ '.networking.wlan.controller.accesspoints_lwap:*.ble_fw_download_status' : {'title': _('Ble FW downaload status')}, }) -# declare_invtable_view('invwlcapslwap', '.networking.wlan.controller.accesspoints_lwap:', _('WLC APs (LWAPP-MIB)'), _('WLC APs (LWAPP-AP-MIB)')) +declare_invtable_view('invwlcapslwap', '.networking.wlan.controller.accesspoints_lwap:', _('WLC APs (LWAPP-MIB)'), _('WLC APs (LWAPP-AP-MIB)'))