mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-09 20:20:31 -07:00
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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
.keep | ||
10.4.0.yaml | ||
6264-zfs-multiline-property-value.yml | ||
9106-passwordstore-fix-subkey-creation-even-when-create-==-false.yml | ||
9625-onepassword_doc.yml | ||
9651-iocage-inventory-hooks.yml | ||
9653-proxmox-kvm-allow-vm-hibernation.yml | ||
9657-lldp-handling-attributes-defined-multiple-times.yml | ||
9658-add-vrf-commands-to-nmcli-module.yml | ||
9659-lxd_connection-nonroot-user.yml | ||
9694-ipa-host-certificate-revoked.yml | ||
9697-zfs-facts-type.yml | ||
9698-lvg-remove-extra-pvs-parameter.yml | ||
9728-bitwarden-collection-name-filter.yml | ||
9729-redfish-fullpowercycle-command.yml | ||
9733-profitbrick-deprecation.yml | ||
9739-keycloak_client-compare-before-desired-directly.yml | ||
9743-incus_connection-nonroot-user.yml | ||
9753-jira-add-client-certificate-auth.yml | ||
9760-proxmox-inventory.yml | ||
9762-apache2_mod_proxy.yml | ||
9774-fix-elasticsearch_plugin-proxy-settings.yml | ||
9778-redhat_subscription-ensure-to-enable-content.yml | ||
ssh_config_add_other_options.yml |