community.general/plugins
Julian Wecke 2b6f4ba299
lldp: Handling attributes that are defined multiple times (#9657)
* lldp: Ignoring values for keys already defined

This fixes crashes when the lldpctl output has lines for unknown tlvs that
redefine a key in the middle of the nested dict data structure.

* lldp: handling attributes that are defined multiple times

- Fix crash caused by certain lldpctl output where an attribute is defined as branch and leaf
- Adds multivalues parameter to control behavior when lldpctl outputs an attribute multiple times

* lldp: using isinstance instead of type

* Link to Github PR

Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* lldp: only push value to subkey in multivalues mode

To provide backwards compatibility values that are defined as a
attribute and also as a path element are only pushed to the 'value'
subkey when using the new multivalues mode.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-02-23 14:21:16 +00:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
cache action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
callback action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
connection incus_connection: Allow non-root users to connect to an instance (#9743) 2025-02-17 07:41:17 +01:00
doc_fragments Keycloak modules retry request on authentication error, support refresh token parameter (#9494) 2025-01-26 15:23:39 +01:00
filter add json_patch, json_patch_recipe and json_diff filters (#9565) 2025-01-21 20:51:21 +01:00
inventory proxmox inventory: proposal for #9710 (caching) (#9760) 2025-02-17 18:45:30 +01:00
lookup bugfix - Prevent passwordstore lookup to create subkey when create == false (#9106) 2025-02-19 21:36:29 +01:00
module_utils Add `FullPowerCycle` to Power commands (#9729) 2025-02-11 18:04:51 +01:00
modules lldp: Handling attributes that are defined multiple times (#9657) 2025-02-23 14:21:16 +00:00
plugin_utils plugins: replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting (#9379) 2024-12-28 22:47:18 +01:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00