Skip to content

Bring back vs chassis support#17647

Merged
wangxin merged 5 commits intosonic-net:masterfrom
BYGX-wcr:bring-back-vs-chassis
Mar 26, 2025
Merged

Bring back vs chassis support#17647
wangxin merged 5 commits intosonic-net:masterfrom
BYGX-wcr:bring-back-vs-chassis

Conversation

@BYGX-wcr
Copy link
Contributor

Description of PR

Summary: Revert two revert commits that removed VS chassis support and add a fix that handled a problem in restart-ptf.
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

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

@BYGX-wcr BYGX-wcr requested review from wangxin and yxieca as code owners March 21, 2025 17:19
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wangxin wangxin merged commit 833f71c into sonic-net:master Mar 26, 2025
18 checks passed
@BYGX-wcr BYGX-wcr deleted the bring-back-vs-chassis branch March 26, 2025 20:43
amulyan7 pushed a commit to amulyan7/sonic-mgmt that referenced this pull request Mar 31, 2025
Revert two revert commits that removed VS chassis support and add a fix that handled a problem in restart-ptf.
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
Revert two revert commits that removed VS chassis support and add a fix that handled a problem in restart-ptf.
@hdwhdw hdwhdw requested a review from Copilot April 8, 2025 17:16
Copy link
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.

Copilot reviewed 16 out of 23 changed files in this pull request and generated 1 comment.

Files not reviewed (7)
  • ansible/lab: Language not supported
  • ansible/roles/vm_set/templates/sonic.xml.j2: Language not supported
  • ansible/setup_vs_chassis.sh: Language not supported
  • ansible/templates/vs_chassis_metadata.json.j2: Language not supported
  • ansible/testbed-cli.sh: Language not supported
  • ansible/vars/topo_t2-vs.yml: Language not supported
  • ansible/veos_vtb: Language not supported
Comments suppressed due to low confidence (1)

ansible/library/port_alias.py:402

  • [nitpick] Consider renaming the key 'front_panel_asic_ifs_asic_id' to a clearer identifier such as 'front_panel_asic_ids' for consistency and improved readability.
"front_panel_asic_ifs_asic_id': front_panel_asic_ifs_asic_id_list,

Comment on lines +335 to +336
self._vs_chassis_midplane_br_name = VS_CHASSIS_MIDPLANE_BRIDGE_NAME_TEMPLATE.format(vm_set_name=vm_set_name)
self._vs_chassis_inband_br_name = VS_CHASSIS_INBAND_BRIDGE_NAME_TEMPLATE.format(vm_set_name=vm_set_name)
Copy link

Copilot AI Apr 8, 2025

Choose a reason for hiding this comment

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

Consider handling long vm_set_name values more gracefully to avoid a ValueError when the VS chassis bridge name exceeds MAX_INTF_LEN; you might truncate or pre-validate vm_set_name before formatting the bridge names.

Suggested change
self._vs_chassis_midplane_br_name = VS_CHASSIS_MIDPLANE_BRIDGE_NAME_TEMPLATE.format(vm_set_name=vm_set_name)
self._vs_chassis_inband_br_name = VS_CHASSIS_INBAND_BRIDGE_NAME_TEMPLATE.format(vm_set_name=vm_set_name)
truncated_vm_set_name = self._truncate_vm_set_name(vm_set_name)
self._vs_chassis_midplane_br_name = VS_CHASSIS_MIDPLANE_BRIDGE_NAME_TEMPLATE.format(vm_set_name=truncated_vm_set_name)
self._vs_chassis_inband_br_name = VS_CHASSIS_INBAND_BRIDGE_NAME_TEMPLATE.format(vm_set_name=truncated_vm_set_name)

Copilot uses AI. Check for mistakes.
r12f pushed a commit to Azure/sonic-mgmt.msft that referenced this pull request Aug 7, 2025
As PR sonic-net/sonic-mgmt#17647 and
sonic-net/sonic-mgmt#18790 are not included in
202412, some parameters in `vm_topology.py` are not supported. So in
this PR, we removed such unsupported parameters.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Revert two revert commits that removed VS chassis support and add a fix that handled a problem in restart-ptf.

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Revert two revert commits that removed VS chassis support and add a fix that handled a problem in restart-ptf.

Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Revert two revert commits that removed VS chassis support and add a fix that handled a problem in restart-ptf.

Signed-off-by: Guy Shemesh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants