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

Vlan status notifier #1730

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

dr412113
Copy link
Contributor

What I did
- Maintain a count in orchagent VLAN strcuture indicating the number
of VLAN members in UP state.
- Send VLAn UP/DOWN to Vlanmgr either when the first VLAN member
comes up or the last VLAN member goes down.
- Vlanmgr will update VLAN admin state in kernel based on notification
received from orchagent.

Why I did it
Vlan routing interface is UP even though the corresponding port-channel on which that vlan routing interface configured is DOWN.

How I verified it
Manual tests

Details if related

dr412113 added 7 commits April 5, 2021 09:23
This reverts commit 047841e.
- Invoke flush Fdb entries per port/vlan
- Instead of maintaining the vlan-members inside Port structure, added a new portVlanmap for vlan members.
 /* Performance issue are seen during mac event processing with large number of vlans on a
 * port. Large data should not be added to port structure. */
- created a portOidToName map to improve performace
- delay lag delete until bridge port is deleted
- delay bridge port removal until all asociated fdb entries are
removed. delete bridge port from portsorch instead of fdborch
- Maintain a count in orchagent VLAN strcuture indicating the number
of VLAN members in UP state.
- Send VLAn UP/DOWN to Vlanmgr either when the first VLAN member
comes up or the last VLAN member goes down.
- Vlanmgr will update VLAN admin state in kernel based on notification
received from orchagent.
@lgtm-com
Copy link

lgtm-com bot commented Apr 28, 2021

This pull request introduces 1 alert when merging 34818ee into ee7a735 - view on LGTM.com

new alerts:

  • 1 for Resource not released in destructor

@prsunny
Copy link
Collaborator

prsunny commented May 4, 2021

Please explain what is the impact if the Vlan interface is staying up?. Also what are the config changes to SAI/ASIC during this.

@lgtm-com
Copy link

lgtm-com bot commented May 5, 2021

This pull request introduces 1 alert when merging 502b536 into 295061c - view on LGTM.com

new alerts:

  • 1 for Resource not released in destructor

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
#### What I did
fix error log variable print sequence, otherwise it is confusable 
#### How I did it
change the varible print sequence

#### New command output (if the output of a command-line utility has changed)
before keepalive-interval setting:
```
root@sonic:/home/admin# config mclag 1 keepalive-interval 30
MCLAG Keepalive:15 Session_timeout:30 values not satisfying session_timeout >= (3 * KA)
```
after fixing:
```
root@sonic:/home/admin# config mclag 1 keepalive-interval 30
MCLAG Keepalive:30 Session_timeout:15 values not satisfying session_timeout >= (3 * KA)
```
@prsunny prsunny self-requested a review as a code owner September 2, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants