Skip to content

NO-ISSUE: Update nmstate Go bindings to 2.2.43 #7579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ require (
github.com/krishicks/yaml-patch v0.0.10
github.com/metal3-io/baremetal-operator/apis v0.2.0
github.com/moby/moby v27.2.1+incompatible
github.com/nmstate/nmstate/rust/src/go/nmstate v0.0.0-20220811151154-801022633c42
github.com/nmstate/nmstate/rust/src/go/nmstate/v2 v2.0.0-20250325131908-c21cec10520e
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.34.1
github.com/openshift-online/ocm-sdk-go v0.1.205
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ github.com/nbutton23/zxcvbn-go v0.0.0-20160627004424-a22cb81b2ecd/go.mod h1:o96d
github.com/nbutton23/zxcvbn-go v0.0.0-20171102151520-eafdab6b0663/go.mod h1:o96djdrsSGy3AWPyBgZMAGfxZNfgntdJG+11KU4QvbU=
github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d/go.mod h1:o96djdrsSGy3AWPyBgZMAGfxZNfgntdJG+11KU4QvbU=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/nmstate/nmstate/rust/src/go/nmstate v0.0.0-20220811151154-801022633c42 h1:UyWwOw6dwrHaLXzTHXI0HVBPJXbOuemif4IQp1JihSY=
github.com/nmstate/nmstate/rust/src/go/nmstate v0.0.0-20220811151154-801022633c42/go.mod h1:+V7mCwK24P5oGufZaSOl2707IiCbgJYpGohmKupvwBw=
github.com/nmstate/nmstate/rust/src/go/nmstate/v2 v2.0.0-20250325131908-c21cec10520e h1:Q4fH8okT0HEp/1SHY/rBkTz5A14MB7tlzNW0Y4n0RO8=
github.com/nmstate/nmstate/rust/src/go/nmstate/v2 v2.0.0-20250325131908-c21cec10520e/go.mod h1:2vIg0rbxZID83I1TmMq1t2Rppg3kimG3fSa2MmckJp0=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
Expand Down
2 changes: 1 addition & 1 deletion pkg/staticnetworkconfig/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"

"github.com/hashicorp/go-multierror"
"github.com/nmstate/nmstate/rust/src/go/nmstate"
"github.com/nmstate/nmstate/rust/src/go/nmstate/v2"
"github.com/openshift/assisted-service/models"
"github.com/pkg/errors"
"github.com/samber/lo"
Expand Down
18 changes: 18 additions & 0 deletions pkg/staticnetworkconfig/nmstate_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package staticnetworkconfig_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/nmstate/nmstate/rust/src/go/nmstate/v2"
)

var _ = Describe("Nmstate", func() {
It("Has the GenerateStateFromPolicy function", func() {
object := nmstate.New()
Expect(object).ToNot(BeNil())
result, err := object.GenerateStateFromPolicy("", "")
Expect(err).ToNot(HaveOccurred())
Expect(result).To(Equal("interfaces: []\n"))
})
})
502 changes: 0 additions & 502 deletions vendor/github.com/nmstate/nmstate/rust/src/go/nmstate/LICENSE

This file was deleted.

44 changes: 0 additions & 44 deletions vendor/github.com/nmstate/nmstate/rust/src/go/nmstate/Makefile

This file was deleted.

202 changes: 202 additions & 0 deletions vendor/github.com/nmstate/nmstate/rust/src/go/nmstate/v2/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ github.com/munnerz/goautoneg
# github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
## explicit
github.com/mxk/go-flowrate/flowrate
# github.com/nmstate/nmstate/rust/src/go/nmstate v0.0.0-20220811151154-801022633c42
# github.com/nmstate/nmstate/rust/src/go/nmstate/v2 v2.0.0-20250325131908-c21cec10520e
## explicit; go 1.16
github.com/nmstate/nmstate/rust/src/go/nmstate
github.com/nmstate/nmstate/rust/src/go/nmstate/v2
# github.com/nxadm/tail v1.4.8
## explicit; go 1.13
github.com/nxadm/tail
Expand Down