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

[fdb]fdborch: fdb entries are deleted according to vlan or port or vlan&&port #1064

Merged
merged 1 commit into from
May 19, 2021

Conversation

yangshp1987
Copy link
Contributor

Fdb entries can be deleted with user specifying vlan or port or vlan&&port.The secifying vlan or port can be configured by cli at another issue#565 in Azure / sonic-utilities.

What I did

Why I did it

How I verified it

Details if related

@prsunny
Copy link
Collaborator

prsunny commented May 10, 2021

@madhanmellanox , could you please review?

SWSS_LOG_NOTICE("Clear fdb by vlan(%s)", vlan.c_str());
return;
}
else if (op == "PORTVLAN")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you point to the definition of this op?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The op comes from my another PR sonic-net/sonic-utilities#657. adding this op(=="PORTVLAN"), developer or operator can delete mac with specify vlan and port in some case.

memset(flush_attr,0, sizeof(flush_attr));
flush_attr[0].id = SAI_FDB_FLUSH_ATTR_BRIDGE_PORT_ID;
flush_attr[0].value.oid = port.m_bridge_port_id;
flush_attr[1].id = SAI_FDB_FLUSH_ATTR_BV_ID;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use the function - flushFDBEntries instead of repeating the statements.
You can also refer the PR #1716 for the other cases.

@prsunny prsunny merged commit 031f536 into sonic-net:master May 19, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
Fdb entries can be deleted with user specifying vlan or port or vlan&&port. 

Signed-off-by: [email protected]
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…onic-net#1064)

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>

The following changes are done
- Support show ip(v6) bgp summary for multi asic platforms
Add the following 2 multi asic options to the cli command
  [-n, --namespace] to allow user to display the information for given namespaces
  If this option is not present the information from all the namespaces will be displayed

  [-d, --display] to allow user to display information related both internal and external interfaces
  If this option is not present only external interfaces/neighbors will be display

- For FRR bgp containers, get the bgp summary in json and display to the user
  add a new file bgp_util.py to have all the common bgp related functions.
  add new functions to get bgp summary from FRR in json, parse the json and render the output
- Add unit test for show ip(v4) bgp summary
  add new unit test to show ip(v4) bgp summary
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
…ndorSai.cpp (sonic-net#1064)

introduce function check if sai_query_api_version exists or not configure.ac.
If not, then do not call this function in the syncd.

Signed-off-by: Guohan Lu <[email protected]>
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