Skip to content

Use Patch instead of Update for interface config in NX-OS - #473

Open
felix-kaestner wants to merge 1 commit into
gnmiext/use-setbuilderfrom
nxos/interface-path
Open

Use Patch instead of Update for interface config in NX-OS#473
felix-kaestner wants to merge 1 commit into
gnmiext/use-setbuilderfrom
nxos/interface-path

Conversation

@felix-kaestner

Copy link
Copy Markdown
Contributor

EnsureInterface now uses sb.Patch (gNMI update/merge) for all
interface configuration objects instead of sb.Update (gNMI replace).
This prevents the operator from clobbering interface config written
by other automation (e.g. an OpenStack driver agent) that manages
the same interface subtree concurrently.

EnsureInterface now uses sb.Patch (gNMI update/merge) for all
interface configuration objects instead of sb.Update (gNMI replace).
This prevents the operator from clobbering interface config written
by other automation (e.g. an OpenStack driver agent) that manages
the same interface subtree concurrently.

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

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos 9.28% (+0.02%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/provider.go 0.38% (+0.00%) 2122 (-5) 8 2114 (-5) 👍

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant