Skip to content

Cover port-channel generation - #2569

Draft
ideaship wants to merge 1 commit into
sonic-e2e-v2-breakout-declaredfrom
sonic-e2e-v2-portchannel
Draft

Cover port-channel generation#2569
ideaship wants to merge 1 commit into
sonic-e2e-v2-breakout-declaredfrom
sonic-e2e-v2-portchannel

Conversation

@ideaship

@ideaship ideaship commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Part of the series tracked in #2562, which explains the ordering and what each PR covers. Based on the preceding PR in the stack, so review only the top commits here.

Scenario overlay for port-channels, covering PORTCHANNEL,
PORTCHANNEL_MEMBER and PORTCHANNEL_INTERFACE.

@ideaship ideaship changed the title sonic e2e v2 portchannel Cover port-channel generation Aug 5, 2026
@berendt
berendt force-pushed the sonic-e2e-v2-portchannel branch from 18a6299 to 6513399 Compare August 5, 2026 15:10
@ideaship
ideaship force-pushed the sonic-e2e-v2-portchannel branch from 6513399 to 11756b8 Compare August 5, 2026 19:51
@berendt
berendt force-pushed the sonic-e2e-v2-portchannel branch from 11756b8 to a69029d Compare August 6, 2026 10:56
@ideaship
ideaship force-pushed the sonic-e2e-v2-portchannel branch from a69029d to d48d1df Compare August 6, 2026 12:10
Add a port-channel (LAG) device to the SONiC E2E synthetic
fixtures. Until now the base/breakout fixtures modelled no LAGs, so
PORTCHANNEL, PORTCHANNEL_INTERFACE and PORTCHANNEL_MEMBER were
emitted by the generator but always empty in every golden -- that
code path had no coverage.

e2e-portchannel (rack E2E, position 9, edgecore-7726-32x-e2e /
Accton-AS7726-32X, role leaf) reuses the site/location/tenant/tag
objects created by 100-base.yml. It bonds Ethernet0 and Ethernet4
into PortChannel1: a NetBox LAG interface (type: lag) with the two
data ports referencing it via their lag field, the same way real
deployments model a port-channel.

This brings cumulative non-empty config_db table coverage across
the golden set from 32 to 35 of the 38 tables the generator emits
(only the VXLAN EVPN/tunnel tables remain uncovered). Verified with
a full down/regen/verify cycle against a freshly started NetBox
stack, so the goldens reflect a from-scratch database rather than
an UPDATE over a reused one.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship
ideaship force-pushed the sonic-e2e-v2-portchannel branch from d48d1df to 7029d37 Compare August 6, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants