Repository navigation
[minigraph] Fix config load_minigraph failure on M2-W5000-48CON2SFP by lowering default MTU - #30382
Open
jackson-micas wants to merge 13 commits into
Open
jackson-micas wants to merge 13 commits into
jackson-micas wants to merge 13 commits into
Conversation
Signed-off-by: jackson <jackson@micasnetworks.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run Azure.sonic-buildimage |
|
Commenter does not have sufficient privileges for PR 30382 in repo sonic-net/sonic-buildimage |
Signed-off-by: jackson <jackson@micasnetworks.com>
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Signed-off-by: jackson <jackson@micasnetworks.com>
…onic-buildimage into fix-minigraph.py Signed-off-by: jackson <jackson@micasnetworks.com>
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Contributor
|
/azpw ms_conflict |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
…onic-buildimage into fix-minigraph.py
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
M2-W5000-48CON2SFP is built around a V3000 CPU with no switching ASIC.
Its data plane therefore follows the virtual-switch model: the Linux NICs
exposed directly by the CPU are used as SONiC front-panel ports, and the
SAI object model is provided by the VS backend. The driver of those
CPU-direct NICs, however, caps the MTU at 1500.
minigraph.pyunconditionally sets every port's default MTU to 9100 inparse_xml(). Any flow that regenerates CONFIG_DB from the minigraph,such as
config load_minigraph --override_config -y, programs 9100 intothe PORT table and pushes it down to the kernel. The kernel then rejects
it with "mtu greater than device maximum", so the front-panel interfaces
cannot be brought up on this SKU.
This cannot be fixed at the SKU layer: the assignment in
parse_xml()overwrites the MTU for every port, so a value in
port_config.inior aconfig_db override does not survive a minigraph regeneration. The fix
therefore adds a per-HWSKU override in
minigraph.py: HWSKUs listed inhwskus_mtu1500get a default port MTU of 1500, while all other platformskeep the existing 9100 default.
Work item tracking
How I did it
Define a list of HWSKUs that support an MTU of 1500; if an HWSKU is in this list, set the default MTU to 1500.
How to verify it
Which release branch to backport (provide reason below if selected)
Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO):
Failure type:
Tested branch
Test result
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)