Skip to content

Update cable length between LT2, FT2 and UT2#23686

Merged
kperumalbfn merged 3 commits intosonic-net:masterfrom
bingwang-ms:fix_cable_length
Oct 31, 2025
Merged

Update cable length between LT2, FT2 and UT2#23686
kperumalbfn merged 3 commits intosonic-net:masterfrom
bingwang-ms:fix_cable_length

Conversation

@bingwang-ms
Copy link
Copy Markdown
Contributor

Why I did it

This PR is to update cable length between LT2/FT2/UT2.

Start Device End Device Cable Length
LT2 FT2 5m
LT2 UT2 30m
Leaf LT2 500m
Work item tracking
  • Microsoft ADO 34412105:

How I did it

  1. Update buffers_config.j2
  2. Add UT for LT2 and FT2

How to verify it

The change is verified by rendering buffer template on a physical device.

Which release branch to backport (provide reason below if selected)

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202503

Tested branch (Please provide the tested image version)

  • 202503

Description for the changelog

Update cable length between LT2/FT2/UT2.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@bingwang-ms bingwang-ms requested a review from lguohan as a code owner August 12, 2025 21:32
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

kperumalbfn
kperumalbfn previously approved these changes Aug 12, 2025
Copy link
Copy Markdown
Contributor

@kperumalbfn kperumalbfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kperumalbfn
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@kperumalbfn
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for buffer configuration in LT2 (Lower Tier 2) and FT2 (Fabric Tier 2) network topologies by introducing new cable length mappings and corresponding test cases.

  • Adds two new device-to-device cable length mappings for lowerspinerouter_leafrouter (500m) and fabricspinerouter_lowerspinerouter (5m)
  • Introduces test case test_buffers_lt2_ft2_render_template to validate buffer template rendering for two new SKU configurations
  • Adds extensive test data files including minigraph XML and expected buffer JSON output for validation

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/sonic-config-engine/tests/test_j2files.py Adds new test method for LT2/FT2 buffer template rendering with two test scenarios
files/build_templates/buffers_config.j2 Extends cable length configuration with two new tier mappings for lower spine and fabric spine routers
src/sonic-config-engine/tests/sample_output/py3/buffer-lt2-p32o64.json New expected output file for P32O64 configuration (1196 lines)
src/sonic-config-engine/tests/sample_output/py3/buffer-ft2-p64.json New expected output file for P64 configuration (864 lines)
src/sonic-config-engine/tests/sample-ft2-p64-minigraph.xml New test input minigraph for FT2 P64 topology (4426 lines)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kperumalbfn kperumalbfn merged commit e7ff8b6 into sonic-net:master Oct 31, 2025
27 checks passed
ashutosh-agrawal pushed a commit to AnantKishorSharma/sonic-buildimage that referenced this pull request Nov 30, 2025
Update cable length between LT2, FT2 and UT2
FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Dec 4, 2025
Update cable length between LT2, FT2 and UT2

Signed-off-by: Feng Pan <fenpan@microsoft.com>
xwjiang-ms pushed a commit to xwjiang-ms/sonic-buildimage that referenced this pull request Dec 22, 2025
Update cable length between LT2, FT2 and UT2

Signed-off-by: xiaweijiang <xiaweijiang@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants