Enhance minigraph link template for autonegotiation and remove requirement to add autoneg interfaces in topo file#16956
Conversation
and add ports for t0-56 topo to have autoneg interfaces Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ansible/vars/topo_t0-56-o8v48.yml
Outdated
| vm_offset: 7 | ||
| DUT: | ||
| autoneg_interfaces: | ||
| intfs: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] |
There was a problem hiding this comment.
This change hardcodes interfaces and remove ability set interface 1,5,7 with autoneg enabled on 1 setup with t0-56 and 2,5,7,8 etc on other setup
There was a problem hiding this comment.
fixed, we dont need to add interfaces in this file anymore
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Hi @vdahiya12 , this change caused loading minigraph failure in master branch. The error message is as below I think that's because the namespace declaration is removed in this change, can you please check? |
| {% endif %} | ||
|
|
||
| {% if msft_an_enabled is defined and vm_topo_config.get('autoneg_interfaces') is not none %} | ||
| <LinkMetadataDeclaration> |
There was a problem hiding this comment.
This part is probably needed
|
@bingwang-ms The fix for this is in #17191. |
Yeah, got it after discussing with Vaibhav. Thanks for the reminding! |
…ement to add autoneg interfaces in topo file (sonic-net#16956) This PR updates the minigraph_link_meta.j2 template and topology configuration to enhance how AutoNegotiation (autoneg) interfaces are processed in SONiC's Ansible scripts. The changes streamline interface detection and remove redundant conditions. Removed dependency on msft_an_enabled for processing autoneg_interfaces. Improved logic to check for 'autoneg' directly in device_conn rather than relying on predefined interface lists. Ensured FEC settings are included only if msft_an_enabled is defined. Type of change Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
|
Cherry-pick PR to 202411: #17261 |
…ement to add autoneg interfaces in topo file (#16956) This PR updates the minigraph_link_meta.j2 template and topology configuration to enhance how AutoNegotiation (autoneg) interfaces are processed in SONiC's Ansible scripts. The changes streamline interface detection and remove redundant conditions. Removed dependency on msft_an_enabled for processing autoneg_interfaces. Improved logic to check for 'autoneg' directly in device_conn rather than relying on predefined interface lists. Ensured FEC settings are included only if msft_an_enabled is defined. Type of change Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
…ement to add autoneg interfaces in topo file (sonic-net#16956) This PR updates the minigraph_link_meta.j2 template and topology configuration to enhance how AutoNegotiation (autoneg) interfaces are processed in SONiC's Ansible scripts. The changes streamline interface detection and remove redundant conditions. Removed dependency on msft_an_enabled for processing autoneg_interfaces. Improved logic to check for 'autoneg' directly in device_conn rather than relying on predefined interface lists. Ensured FEC settings are included only if msft_an_enabled is defined. Type of change Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
|
Cherry-pick PR to msft-202405: Azure/sonic-mgmt.msft#169 |
Description of PR
This PR updates the
minigraph_link_meta.j2template and topology configuration to enhance how AutoNegotiation (autoneg) interfaces are processed in SONiC's Ansible scripts. The changes streamline interface detection and remove redundant conditions.Summary:
Fixes # (issue)
msft_an_enabledfor processingautoneg_interfaces.'autoneg'directly indevice_connrather than relying on predefined interface lists.msft_an_enabledis defined.Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation