Skip to content
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

Invalid Field Error on Client #376

Open
Freedisch opened this issue Feb 8, 2024 · 0 comments
Open

Invalid Field Error on Client #376

Freedisch opened this issue Feb 8, 2024 · 0 comments

Comments

@Freedisch
Copy link

On my project I'mm currently trying to define a new DB connection with OVSDB but we keep getting the error of NewDBModel is undefined on client.

import "github.com/ovn-org/libovsdb/client"
dbModel, _ := client.NewDBModel("OVN_Northbound",
    map[string]client.Model{
	"Logical_Switch": &MyLogicalSwitch{},
})

Note: This definition is a the one currently suggest by the ovsdb documentation https://pkg.go.dev/github.com/ovn-org/libovsdb/client#pkg-functions and many other field like ovs, _ := client.Connect(contect.Background(), dbModel) are throwing the an invalid field error.

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

No branches or pull requests

1 participant