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 823aa197 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent f82414bb
No related branches found
No related tags found
No related merge requests found
......@@ -214,18 +214,10 @@ def parse_inv_lldp_cache(string_table: List[StringTable]) -> list:
def inventory_lldp_cache(params, section: list) -> InventoryResult:
removecolumns = []
remove_domain = False
domain_name = ''
use_short_if_name = False
# get parameters from wato
if params:
# get list of columns to remove from inventory
removecolumns = params.get('removecolumns', removecolumns)
remove_domain = params.get('remove_domain', remove_domain)
domain_name = params.get('domain_name', domain_name)
use_short_if_name = params.get('use_short_if_name', use_short_if_name)
removecolumns = params['removecolumns']
remove_domain = params['remove_domain']
domain_name = params['domain_name']
use_short_if_name = params['use_short_if_name']
path= ['networking', 'lldp_cache']
......@@ -302,6 +294,11 @@ register.snmp_section(
register.inventory_plugin(
name='inv_lldp_cache',
inventory_function=inventory_lldp_cache,
inventory_default_parameters={},
inventory_default_parameters={
'removecolumns': [],
'remove_domain': False,
'domain_name': '',
'use_short_if_name': False,
},
inventory_ruleset_name='inv_lldp_cache',
)
No preview for this file type
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