Skip to content

Add EthernetSegment resource and NX-OS provider implementation#378

Open
felix-kaestner wants to merge 1 commit into
mainfrom
evpn-multihoming
Open

Add EthernetSegment resource and NX-OS provider implementation#378
felix-kaestner wants to merge 1 commit into
mainfrom
evpn-multihoming

Conversation

@felix-kaestner
Copy link
Copy Markdown
Contributor

Introduce the EthernetSegment API type for EVPN multi-homing (RFC 7432 Section 5) with controller, CRD, and NX-OS provider.

The controller validates that the referenced interface is an aggregate with switchport configuration and watches for switchport state transitions. The NX-OS provider enables EVPN multihoming globally, configures the ESI per port-channel via a subtree patch, and rejects SingleActive mode and vPC coexistence with typed terminal errors.

@felix-kaestner felix-kaestner force-pushed the evpn-multihoming branch 3 times, most recently from e562595 to 6dc0ffb Compare May 28, 2026 19:50
@felix-kaestner felix-kaestner marked this pull request as ready for review May 28, 2026 20:01
@felix-kaestner felix-kaestner requested a review from a team as a code owner May 28, 2026 20:01
Introduce the EthernetSegment API type for EVPN multi-homing
(RFC 7432 Section 5) with controller, CRD, and NX-OS provider.

The controller validates that the referenced interface is an
aggregate with switchport configuration and watches for switchport
state transitions. The NX-OS provider enables EVPN multihoming
globally, configures the ESI per port-channel via a subtree patch,
and rejects SingleActive mode and vPC coexistence with typed
terminal errors.

Signed-off-by: Felix Kästner <felix.kaestner@sap.com>
@github-actions
Copy link
Copy Markdown

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ironcore-dev/network-operator/api/core/v1alpha1 0.00% (ø)
github.com/ironcore-dev/network-operator/cmd 0.00% (ø)
github.com/ironcore-dev/network-operator/internal/controller/core 60.17% (-2.44%) 👎
github.com/ironcore-dev/network-operator/internal/provider 52.00% (ø)
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos 9.90% (-0.05%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ironcore-dev/network-operator/api/core/v1alpha1/ethernetsegment_types.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/api/core/v1alpha1/groupversion_info.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/api/core/v1alpha1/zz_generated.deepcopy.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/cmd/main.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/internal/controller/core/ethernetsegment_controller.go 0.00% (ø) 179 (+179) 0 179 (+179)
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/esi.go 100.00% (+100.00%) 2 (+2) 2 (+2) 0 🌟
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/provider.go 0.06% (-0.00%) 1809 (+30) 1 1808 (+30) 👎
github.com/ironcore-dev/network-operator/internal/provider/provider.go 52.00% (ø) 25 13 12

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/ironcore-dev/network-operator/internal/controller/core/ethernetsegment_controller_test.go
  • github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/esi_test.go

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