Skip to content

[submodule] Advance sonic-ztp to pick up the port config re-assert fix (202311.X) - #746

Merged
gord1306 merged 1 commit into
202311.Xfrom
bump/sonic-ztp-reassert-port-config-202311.X
Aug 21, 2026
Merged

[submodule] Advance sonic-ztp to pick up the port config re-assert fix (202311.X)#746
gord1306 merged 1 commit into
202311.Xfrom
bump/sonic-ztp-reassert-port-config-202311.X

Conversation

@gord1306

Copy link
Copy Markdown
Contributor

Advances the src/sonic-ztp submodule on 202311.X so the branch picks up the port configuration re-assert fix (edge-core/sonic-ztp#7).

c488842 -> 274909a, which brings in exactly one commit:

  • 274909a [ZTP] Re-assert front panel port config after ZTP profile removal

Why

ztp-profile.sh remove deletes ZTP|mode from CONFIG_DB and then restarts interfaces-config, which regenerates /etc/network/interfaces from interfaces.j2. The ZTP in-band block of that template is gated on ZTP['mode'], so once the table is gone the regenerated file contains no Ethernet stanza at all. The subsequent systemctl restart networking runs ifdown -a followed by ifup -a: ifupdown2 tears down every front panel port it had adopted for ZTP in-band DHCP and does not bring them back.

The netdev is left administratively down with its MTU reset to the kernel default, while CONFIG_DB, APPL_DB and the ASIC all still report the port as up. Because show interfaces status reads APPL_DB the CLI shows up/up, so the problem is invisible from there while LLDP and DHCP silently stop working. portmgrd only acts on CONFIG_DB events and keeps no desired state, so it neither notices nor corrects the drift. Recovery requires a manual config interface shutdown/startup on each affected port.

Scope

Submodule pointer only. .gitmodules already has branch = 202311.X for src/sonic-ztp, so nothing else changes. The same bump has already been applied on 202311.X_4630_10g_prod in #738.

Verification

Validated on an AS4630-54PE running in-band ZTP with an official build. After ZTP removes its profile the teardown is confirmed to have happened - /etc/network/interfaces holds no Ethernet stanza and ZTP|mode is cleared - and all 48 cabled front panel ports stay up with MTU 9100, with the peer capturing LLDP frames at the expected 30 second interval. Without the fix the same environment leaves all 48 ports netdev DOWN with MTU 1500 while the CLI reports them as up/up and no LLDP is transmitted.

sonic-ztp 274909a re-asserts the front panel port configuration after the ZTP
profile is removed. Without it, the ports that ifupdown2 had adopted for ZTP
in-band DHCP are torn down by the ifdown/ifup that interfaces-config performs
during teardown and are never brought back, leaving the netdev administratively
down with its MTU reset while CONFIG_DB, APPL_DB and the ASIC all still report
the port as up. LLDP and DHCP stop working on those ports and only a manual
"config interface shutdown/startup" recovers them.

Advance the src/sonic-ztp submodule from c488842 to 274909a. The .gitmodules
branch field for src/sonic-ztp already tracks 202311.X, so no other change is
needed.
@gord1306
gord1306 merged commit 7a350e4 into 202311.X Aug 21, 2026
1 check passed
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.

1 participant