-
Notifications
You must be signed in to change notification settings - Fork 771
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
Remove supervisorAsicBase offset from test_fabric_reach.py test #15828
Remove supervisorAsicBase offset from test_fabric_reach.py test #15828
Conversation
@arlakshm @wenyiz2021 for awareness |
Can this PR also get the "chassis" and "Request for branch 202405" label |
I saw the original code was added by @jfeng-arista , and here are my questions:
|
we have the modid starting from 300 on fabric cards before for arista systems. Reading this change, it looks some from some point, the modid start port get changed. |
The module-id starts from 1 in our platforms. |
Reading the history of changes, for the modid of FEs on fabric module, Arista systems started with 300 before , based on @saksarav-nokia , the module id starts from 1 on their platforms. In SONiC code base, the modid was set from appl_param_module_id in the config file for each sku I think. Starting sonic-net/sonic-swss#2908, it added a sai call to set a modid for fabric from orchagnet. From then, the modid is set from orchagent and started from 0 for FEs on fabric module, at least for Arista systems, which I think overrides what is set from appl_param_module_id in config files per sku. So with current code base, the module id of FE reading from chip starts from 0 on our modular systems. Will discuss more about how we want to proceed here, beyond the test, I am more concerned about what the actual value should be set to in the system. thank you |
Update: We are waiting on brcm to get some clarity on the issue, the PR will be updated accordingly. |
@arista-hpandya as discussed in the community meeting. Can we get the |
Previously we were using a hardcoded offset called supervisorAsicBase for calculating the module ID/switch ID. However, we could directly query this from the CONFIG_DB on the supervisor for uniformity across all platforms.
68a1743
to
612b682
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@saksarav-nokia Could you please verify if the new way of fetching module ID from CONFIG_DB works on Nokia devices? If so we can remove the supervisorAsicBase from nokia fabric data files. |
Rerunning pipeline checks due to unrelated failures:
|
/azpw run Azure.sonic-mgmt |
/AzurePipelines run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
@arista-hpandya , i will check and let you know |
@arista-hpandya , lgtm |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-mgmt |
/AzurePipelines run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-mgmt |
/AzurePipelines run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
@arlakshm Are these changes good to merge? Let me know if there are any concerns you want me to address. Thanks! |
…_fabric_reach.py#15828 What is the motivation for this PR? The original test used a base moduleID offset for Arista devices, however, this offset created mismatch in the moduleID and led the test to fail. How did you do it? Remove the base module ID offset variable: supervisorAsicBase How did you verify/test it? I ran the test successfully on a T2 testbed to verify the change. Description of PR Summary: Cherry picked from sonic-net/sonic-mgmt#15828
…h.py test (sonic-net#15828) Approach What is the motivation for this PR? The original test used a base moduleID offset for Arista devices, however, this offset created mismatch in the moduleID and led the test to fail. How did you do it? Remove the base module ID offset variable: supervisorAsicBase How did you verify/test it? I ran the test successfully on a T2 testbed to verify the change.
Description of PR
Summary:
Fixes #15753
Type of change
Back port request
Approach
What is the motivation for this PR?
The original test used a base moduleID offset for Arista devices, however, this offset created mismatch in the moduleID and led the test to fail.
How did you do it?
Remove the base module ID offset variable:
supervisorAsicBase
How did you verify/test it?
I ran the test successfully on a T2 testbed to verify the change.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation