Skip to content

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

Open
mssonicbld wants to merge 1 commit into
Azure:202503from
mssonicbld:cherry/msft-202503/26404
Open

mssonicbld wants to merge 1 commit into
Azure:202503from
mssonicbld:cherry/msft-202503/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

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

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

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

This cherry pick PR has been opened for more than 3 days. The mssonicbld will attempt to retry.

---Powered by SONiC BuildBot

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azpw retry

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Arvindsrinivasan Lakshmi Narasimhan (@arlakshm) The cherry pick PR didn't pass PR checker after retry. Left a comment in original PR sonic-net/sonic-buildimage#26404 to notify author.

---Powered by SONiC BuildBot

@saiarcot895

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

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