Skip to content

Change Jinja logic indentation in t0 and t1 topologies for readability#20490

Merged
bingwang-ms merged 5 commits intosonic-net:masterfrom
wrideout-arista:master-master
Oct 23, 2025
Merged

Change Jinja logic indentation in t0 and t1 topologies for readability#20490
bingwang-ms merged 5 commits intosonic-net:masterfrom
wrideout-arista:master-master

Conversation

@wrideout-arista
Copy link
Copy Markdown
Contributor

Description of PR

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.

Type of change

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

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

As a part of other work using the modified t0 and t1 templates, we needed to add additional Jinja logic in order to support new capabilities within the testbed peer devices. While doing so we found that the readability of the existing Jinja logic was vastly improved by using indentation to reflect the structure of that code.

How did you verify/test it?

Ran multiple full suites and saw no regressions related to these changes.

Any platform specific information?

None

Supported testbed topology if it's a new test case?

N/A

ansible/roles/eos/templates, for readability.
ansible/roles/eos/templates, for readability.
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Oct 23, 2025

no-op change. lgtm.

@wrideout-arista
Copy link
Copy Markdown
Contributor Author

/easycla

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Nov 9, 2025

hey Will, will need some help taking this change to 202412 @wrideout-arista

@wrideout-arista
Copy link
Copy Markdown
Contributor Author

@r12f this is ready in Azure/sonic-mgmt.msft#854

r12f pushed a commit to Azure/sonic-mgmt.msft that referenced this pull request Nov 16, 2025
#854)

<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->

Summary: Enhance readability of Jinja logic in select t0 and t1 topology
template files via indentation.

This was originally merged to master in
sonic-net/sonic-mgmt#20490.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

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


### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
As a part of other work using the modified t0 and t1 templates, we
needed to add additional Jinja logic in order to support new
capabilities within the testbed peer devices. While doing so we found
that the readability of the existing Jinja logic was vastly improved by
using indentation to reflect the structure of that code.

#### How did you verify/test it?
Ran multiple full suites and saw no regressions related to these
changes.

#### Any platform specific information?
None

#### Supported testbed topology if it's a new test case?
N/A

<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
albertovillarreal-keys pushed a commit to albertovillarreal-keys/sonic-mgmt that referenced this pull request Dec 2, 2025
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: Alberto Villarreal <alberto.villarreal@keysight.com>
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Dec 11, 2025
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: selldinesh <dinesh.sellappan@keysight.com>
saravanan-nexthop pushed a commit to saravanan-nexthop/sonic-mgmt that referenced this pull request Dec 15, 2025
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: Saravanan <saravanan@nexthop.ai>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Jan 29, 2026
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: Yael Tzur <ytzur@nvidia.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#20490)

#### Why I did it
src/sonic-swss
```
* 23df60a7 - (HEAD -> 202311, origin/202311) [Orchagent] Add optional create_switch timeout parameter (sonic-net#3322) (19 hours ago) [Rajkumar-Marvell]
```
#### How I did it
#### How to verify it
#### Description for the changelog
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Apr 20, 2026
sonic-net#20490)

Summary: Enhance readability of Jinja logic in select t0 and t1 topology template files via indentation.
Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.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.

5 participants