Skip to content

[action] [PR:26404] [agent][cfggen] Fix len() called with no arguments in PortChannel Fallback parsing - #3004

Merged
bingwang-ms merged 1 commit into
Azure:202512from
mssonicbld:cherry/msft-202512/26404
Aug 31, 2026
Merged

bingwang-ms merged 1 commit into
Azure:202512from
mssonicbld:cherry/msft-202512/26404

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

What I did

Fix len() called with no arguments in minigraph.py:969, which crashes PortChannel Fallback parsing with TypeError.

How I did it

Changed len() to len(pcmbr_list), matching the non-Fallback branch on line 971.

How to verify it

Parse a minigraph XML containing a PortChannel with a <Fallback> element — it should no longer crash.

Which release branch to backport

master

Description for the changelog

Fix TypeError crash in minigraph PortChannel Fallback parsing due to len() called with no arguments.

Fixes: #26399
Signed-off-by: Sonic Build Admin sonicbld@microsoft.com

…lback parsing

#### What I did
Fix `len()` called with no arguments in `minigraph.py:969`, which crashes PortChannel Fallback parsing with `TypeError`.

#### How I did it
Changed `len()` to `len(pcmbr_list)`, matching the non-Fallback branch on line 971.

#### How to verify it
Parse a minigraph XML containing a PortChannel with a `<Fallback>` element — it should no longer crash.

#### Which release branch to backport
master

#### Description for the changelog
Fix TypeError crash in minigraph PortChannel Fallback parsing due to len() called with no arguments.

Fixes: #26399
Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-buildimage#26404

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

1 similar comment
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@bingwang-ms
bingwang-ms merged commit 3500678 into Azure:202512 Aug 31, 2026
3 of 11 checks passed
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.

2 participants