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
SAI interface does not provide a way to set the FEC and speed of a port together #1322
Comments
@kcudnik @JaiOCP @marian-pritsak @rlhui any continued thoughts on how we might handle this would be appreciated. |
Introduce another attribute? On use-case to set speed+fec together, then set speed and fec, then set attribute to false. Effectively start limited transaction (just for speed and FEC) |
good approach seems to me the one that i proposed with bulk operation:
at some angle it would be similar to the transaction you are proposing? |
Perhaps I'm missing something, but I'm not seeing a bulk set API defined for port attributes in the SAI interface. If we do have something like that available, I'd be inclined to agree that it's semantically similar to an explicit "transaction" attribute, possibly without some of the state keeping required at the vendor SAI layer. |
yes, bulk is not defined yet, but there is no problem to add bulk api support there as 4 function pointers |
There are cases where we technically cannot change from one port speed/FEC combination to another using the existing single-attribute write.
As an example: 40G/FC-FEC to 100G/RS-FEC - it is not valid to change to 100G with FC-FEC enabled, and likewise it is not valid to enable RS-FEC on a 40G link.
Previous discussion on this was under #1308
Some ideas that were discussed:
The text was updated successfully, but these errors were encountered: