diff --git a/agent_based/cisco_wlc.py b/agent_based/cisco_wlc.py index 3ff9e6a92f0837dd8f792b003871c4095e2f2a8b..f36ff2f5211eeea4786c5dc4bb5b4df5294c4686 100644 --- a/agent_based/cisco_wlc.py +++ b/agent_based/cisco_wlc.py @@ -653,7 +653,7 @@ register.check_plugin( 'state_cdp_change': 1, 'state_ap_change': 1, 'ap_list': [], - 'inv_ap_info': {}, + # 'inv_ap_info': {}, }, check_ruleset_name='cisco_wlc', ) diff --git a/cisco_wlc.mkp b/cisco_wlc.mkp index 93f318d4348eacc94f771a60a7cfbc26f23d06be..03975b50bd852a68b30f20db9f7e6a53d53c1537 100644 Binary files a/cisco_wlc.mkp and b/cisco_wlc.mkp differ diff --git a/web/plugins/wato/cisco_wlc.py b/web/plugins/wato/cisco_wlc.py index 4319a31b1c8c8c3499ad80126f2b73fa91fa5449..794beb5dde92ad382feeb05417a0b18c0222ef3f 100644 --- a/web/plugins/wato/cisco_wlc.py +++ b/web/plugins/wato/cisco_wlc.py @@ -123,7 +123,23 @@ def _parameter_valuespec_cisco_wlc(): ), title=_('AP alias'), add_label=_('Add name'))), - ]) + ('inv_ap_info', # added by plugin discovery function + Dictionary( + elements=[ + ('ap_location', TextUnicode()), + ('ap_model', TextUnicode()), + ('ap_serialnumber', TextUnicode()), + ('ap_ipaddress', TextUnicode()), + ('ap_ethernetmacaddress', TextUnicode()), + ('cdp_neigh_name', TextUnicode()), + ('cdp_neigh_address', TextUnicode()), + ('cdp_neigh_interface', TextUnicode()), + ('cdp_neigh_platform', TextUnicode()), + ], + )), + ], + hidden_keys=['inv_ap_info'], + ) rulespec_registry.register(