Skip to content
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

Fix for LLDP portname issue #2886

Merged
merged 2 commits into from
May 10, 2019
Merged

Fix for LLDP portname issue #2886

merged 2 commits into from
May 10, 2019

Conversation

sumukhatv
Copy link
Contributor

First check for operstate and if its not present then check for ifindex

- What I did
Fixed the issue in LLDP where portname was advertised as a MAC address instead
- How I did it
To decide whether a port exists, first we check for operstate file. If this file is present, then we check if the state is "up" or not. If the file itself is not present, then we know that it is a v-switch, so we can now look for ifindex file and make a decision whether the port exists or not.

- How to verify it

- Description for the changelog

To decide the existence of a port, check for status in the operstate file. If this file is not present check ifindex file.

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

First check for operstate and if its not present then check for ifindex
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.

Can you please review my comments?

dockers/docker-lldp-sv2/lldpmgrd Outdated Show resolved Hide resolved
dockers/docker-lldp-sv2/lldpmgrd Outdated Show resolved Hide resolved
@sumukhatv sumukhatv merged commit 3a8ce5f into sonic-net:master May 10, 2019
yxieca pushed a commit that referenced this pull request May 14, 2019
* Fix for LLDP portname issue
First check for operstate and if its not present then check for ifindex

* Addressing review comments
MichelMoriniaux pushed a commit to criteo-forks/sonic-buildimage that referenced this pull request May 28, 2019
* Fix for LLDP portname issue
First check for operstate and if its not present then check for ifindex

* Addressing review comments
qiluo-msft pushed a commit that referenced this pull request Jul 11, 2023
sonic-utilities submodule update

#### Why I did it
sonic-utilities submodule update:
```
399b1e3 2023-07-06 [202012][Show][BGP] Show BGP Change for no neighbor scenario (#2886)
7b47641 2023-07-10 [[202012] [TACACS+] Add config command for AAA authorization and accounting. (#1889)
```
##### Work item tracking
- Microsoft ADO **(number only)**:24433713

#### How I did it
Update sonic-utilities submodule.

#### How to verify it
Pass all test case.

#### Tested branch (Please provide the tested image version)
- [ ] SONiC.202012-15703.306864-1ef589c19
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