Skip to content

[portsorch] Skip default VLAN and bridge port removal during warm restart - #4801

Open
haojun291 wants to merge 1 commit into
sonic-net:masterfrom
haojun291:warm-reboot-core
Open

[portsorch] Skip default VLAN and bridge port removal during warm restart#4801
haojun291 wants to merge 1 commit into
sonic-net:masterfrom
haojun291:warm-reboot-core

Conversation

@haojun291

@haojun291 haojun291 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

What I did
Skipped removeDefaultVlanMembers() and removeDefaultBridgePorts() during warm restart in the PortsOrch constructor.

Why I did it
During a warm restart, the underlying ASIC state is preserved, and these ports have already been removed from the default VLAN and bridge during the initial cold boot. Redundantly calling these remove functions causes SAI validation errors (e.g., reference count is 1, can't remove).

How I verified it
Performed warm reboot.

Details if related
img_v3_02143_51f3be9b-2786-4bb6-bbef-2686f78de00g
img_v3_02143_61d00956-d071-45be-9b8c-344b320de0bg

…tart

Signed-off-by: zhonghaojun <young@micasnetworks.com>
@haojun291
haojun291 requested a review from prsunny as a code owner July 30, 2026 06:52
@mssonicbld

Copy link
Copy Markdown
Collaborator

/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).

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.

2 participants