Skip to content

[lldpctl patch] patch lldpctl script to work around ansible bug#2567

Merged
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:lldp
Nov 22, 2020
Merged

[lldpctl patch] patch lldpctl script to work around ansible bug#2567
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:lldp

Conversation

@yxieca
Copy link
Copy Markdown
Collaborator

@yxieca yxieca commented Nov 21, 2020

Summary:
Fixes #2558

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

Ansible 2.8.12 has a bug in lldp module, when lldpctl -f keyvalue shows multiple unknown-tlvs for a single interface, it will throw
exception.

How did you do it?

This change is to work around the ansible lldp module issue for the time being.

How did you verify/test it?

Run lldp/test_lldp.py, test passes.
Run snmp/test_snmp_lldp.py. test passes.

Signed-off-by: Ying Xie [email protected]

Copy link
Copy Markdown
Contributor

@theasianpianist theasianpianist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to also call these methods before/after the LLDP tests (and other tests relying on the LLDP module) so that they can pass when run manually?

@yxieca
Copy link
Copy Markdown
Collaborator Author

yxieca commented Nov 21, 2020

Is it possible to also call these methods before/after the LLDP tests (and other tests relying on the LLDP module) so that they can pass when run manually?

It is possible. But it has some merge conflict with another change I am making. I'll create another PR to improve.

Ansible 2.8.12 has a bug in lldp module, when lldpctl -f keyvalue
shows multiple unknown-tlvs for a single interface, it will throw
exception.

This change is to work around the ansible lldp module issue for
the time being.

Signed-off-by: Ying Xie <[email protected]>
@yxieca yxieca merged commit b7a7a8a into sonic-net:master Nov 22, 2020
@yxieca yxieca deleted the lldp branch November 22, 2020 01:07
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
#### Why I did it

Update for following swss commits:

96180bf - 2023-01-13 : [202012] Bfd default multiplier change  (sonic-net#2615) [siqbal1986]
07506ac - 2023-01-11 : Add missing parameter to on_switch_shutdown_request method. (sonic-net#2567) [Hua Liu]
3253cc8 - 2022-11-30 : Use github code scanning instead of LGTM (sonic-net#2546) [Liu Shilong]
f4df524 - 2023-01-11 : [orchagent]:add local_discriminator to state_db (sonic-net#2587) [Baorong Liu]
f3cd02d - 2022-12-05 : [202012][muxorch] Adding case for maintaining current state (sonic-net#2500) [Nikola Dancejic]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#15887)

src/sonic-swss

* ed0ca898 - (HEAD -> 202205, origin/202205) Add missing parameter to on_switch_shutdown_request method. (sonic-net#2567) (34 hours ago) [Hua Liu]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#16335)

#### Why I did it
src/sonic-swss
```
* 16817324 - (HEAD -> 202211, origin/202211) [mux]: Fix UTs segmentation fault (sonic-net#2760) (12 hours ago) [Nazarii Hnydyn]
* 0fa5d880 - [orchagent]: Handle additional SAI error conditions gracefully (sonic-net#2755) (2 days ago) [prabhataravind]
* 3726aebc - [mux]: Implement rollback for failed mux switchovers (sonic-net#2714) (2 days ago) [Lawrence Lee]
* a8e50e7d - [portsorch]: Set default hostif TX queue (sonic-net#2697) (2 days ago) [prabhataravind]
* 0689d656 - Add missing parameter to on_switch_shutdown_request method. (sonic-net#2567) (2 days ago) [Hua Liu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lldp ansible module fails due to timeout on 7050cx3

2 participants