Skip to content

[fanout connect playbook] Fix variable undefined in rootfanout_connect.yml#16634

Merged
Blueve merged 2 commits intosonic-net:masterfrom
w1nda:fix_fanout_connect
Jan 23, 2025
Merged

[fanout connect playbook] Fix variable undefined in rootfanout_connect.yml#16634
Blueve merged 2 commits intosonic-net:masterfrom
w1nda:fix_fanout_connect

Conversation

@w1nda
Copy link
Copy Markdown
Member

@w1nda w1nda commented Jan 22, 2025

Description of PR

Summary:
Fixes # (issue)
In PR: #15643, it add a new optional variable clean_before_add for template arista_7260_connect.j2 to indicate whether clean vlan range before add vlan range, however, this variable are defined in fanout_connect.yml which will call rootfanout_connect.yml, this will be a bug, because when rootfanout_connect.yml is called by other playbook, it will raise error: clean_before_add undefined, so, to fix this bug, we move the clean_before_add definition from fanout_connect.yml to
rootfanout_connect.yml.

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?

this will be a bug, because when rootfanout_connect.yml is called by other playbook, it will raise error: clean_before_add undefined

How did you do it?

move the clean_before_add definition from fanout_connect.yml to
rootfanout_connect.yml.

How did you verify/test it?

local run playbook

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@w1nda w1nda requested review from Blueve and wangxin January 22, 2025 06:28
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#25

nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
…t.yml (sonic-net#16634)

Summary:
Fixes # (issue)
In PR: sonic-net#15643, it add a new optional variable clean_before_add for template arista_7260_connect.j2 to indicate whether clean vlan range before add vlan range, however, this variable are defined in fanout_connect.yml which will call rootfanout_connect.yml, this will be a bug, because when rootfanout_connect.yml is called by other playbook, it will raise error: clean_before_add undefined, so, to fix this bug, we move the clean_before_add definition from fanout_connect.yml to
rootfanout_connect.yml.

What is the motivation for this PR?
this will be a bug, because when rootfanout_connect.yml is called by other playbook, it will raise error: clean_before_add undefined

How did you do it?
move the clean_before_add definition from fanout_connect.yml to
rootfanout_connect.yml.

How did you verify/test it?
local run playbook
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