-
Notifications
You must be signed in to change notification settings - Fork 523
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
Conversation
0bf309f
to
e51414e
Compare
@madhanmellanox , could you please review? |
SWSS_LOG_NOTICE("Clear fdb by vlan(%s)", vlan.c_str()); | ||
return; | ||
} | ||
else if (op == "PORTVLAN") |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
orchagent/fdborch.cpp
Outdated
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; |
There was a problem hiding this comment.
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.
Fdb entries can be deleted with user specifying vlan or port or vlan&&port. Signed-off-by: [email protected]
…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
…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]>
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