Skip to content

[LLDP] Fix for LLDP advertisements being sent with wrong information. #5493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 26, 2020
Merged

[LLDP] Fix for LLDP advertisements being sent with wrong information. #5493

merged 7 commits into from
Oct 26, 2020

Conversation

shlomibitton
Copy link
Contributor

@shlomibitton shlomibitton commented Sep 29, 2020

Signed-off-by: Shlomi Bitton [email protected]

- Why I did it
Since lldpd is starting before lldpmgrd, some advertisement packets might sent with default value, mac address as Port ID.
This fix hold the packets from being sent by the lldpd until all interfaces are well configured by the lldpmgrd.

- How I did it

  • Add 'pause' command when lldpd start to avoid false advertisement information.
  • Resume lldp operations after ports init is done on DB and all lldpd interfaces configured with correct data.

- How to verify it
Capture LLDP advertisement sent from the switch and observe 'Port ID' field.

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Shlomi Bitton added 3 commits September 23, 2020 16:48
Since lldpd is starting before lldpmgr, some advertisment packets might sent with default value, mac address as Port ID.
This fix hold the packets from being sent by the lldpd until all interfaces are well configured by the lldpmgrd.

Signed-off-by: Shlomi Bitton <[email protected]>
@keboliu
Copy link
Collaborator

keboliu commented Oct 13, 2020

retest this please

1 similar comment
@liat-grozovik
Copy link
Collaborator

retest this please

Copy link
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

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

As comments

@liat-grozovik liat-grozovik merged commit e66d49a into sonic-net:master Oct 26, 2020
@rlhui rlhui requested a review from abdosi October 30, 2020 06:18
abdosi pushed a commit that referenced this pull request Oct 30, 2020
…#5493)

* Fix for LLDP advertisments being sent with wrong information.
Since lldpd is starting before lldpmgr, some advertisment packets might sent with default value, mac address as Port ID.
This fix hold the packets from being sent by the lldpd until all interfaces are well configured by the lldpmgrd.

Signed-off-by: Shlomi Bitton <[email protected]>

* Fix comments

* Fix unit-test output caused a failure during build

* Add 'run_cmd' function and use it

* Resume lldpd even if port init timeout reached
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…sonic-net#5493)

* Fix for LLDP advertisments being sent with wrong information.
Since lldpd is starting before lldpmgr, some advertisment packets might sent with default value, mac address as Port ID.
This fix hold the packets from being sent by the lldpd until all interfaces are well configured by the lldpmgrd.

Signed-off-by: Shlomi Bitton <[email protected]>

* Fix comments

* Fix unit-test output caused a failure during build

* Add 'run_cmd' function and use it

* Resume lldpd even if port init timeout reached
@shlomibitton shlomibitton deleted the shlomi_lldp_fix_2 branch March 24, 2021 20:38
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.

5 participants