You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I 'd like to use CPS to get the full FDB of a switch. By now it is only possible to query one specific entry, by specifying mac and vlan. This is probably due to the fact, SAI only supports:
/* For now you can only do a single entry get based on the key of the entry */
My local hack is, to cache the entries and read them, if no mac and/or vlan are supplied. Could this be a viable solution to bring upstream or does somebody has a better idea, how to solve this issue.
By now my solution consists of a static map and really doesn't integrate into the workflow of nas_mac_api and nas_mac_cps. Therefore, flushing is not supported yet. Nevertheless, before integrating it deeper into opx-nas-l2, I wanted to ask for your opinion.
Simon
The text was updated successfully, but these errors were encountered:
We had FDB cache maintained in opx-nas-l2 earlier but faced performance hit (so removed the whole code base of caching) . This is something the application should maintain as required instead of base NOS (which OPX is) . Also as you correctly pointed out that the SAI only has support to retrieve one specific FDB entry. Hope that helps a bit.
I 'd like to use CPS to get the full FDB of a switch. By now it is only possible to query one specific entry, by specifying mac and vlan. This is probably due to the fact, SAI only supports:
However there is a comment in src/mac/nas_mac_api.cpp, which might suggest more is planned.
/* For now you can only do a single entry get based on the key of the entry */
My local hack is, to cache the entries and read them, if no mac and/or vlan are supplied. Could this be a viable solution to bring upstream or does somebody has a better idea, how to solve this issue.
By now my solution consists of a static map and really doesn't integrate into the workflow of nas_mac_api and nas_mac_cps. Therefore, flushing is not supported yet. Nevertheless, before integrating it deeper into opx-nas-l2, I wanted to ask for your opinion.
Simon
The text was updated successfully, but these errors were encountered: