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

I cannot list devices without define cable_end property #195

Closed
lukas016 opened this issue Feb 9, 2025 · 2 comments
Closed

I cannot list devices without define cable_end property #195

lukas016 opened this issue Feb 9, 2025 · 2 comments

Comments

@lukas016
Copy link

lukas016 commented Feb 9, 2025

Hi,

i cannot list interfaces in netbox with latest version of library 4.2.2-0.

I always get error:

"no value given for required property cable_end"

Code:

infResList, res, err := client.DcimAPI.DcimInterfacesList(context.Background()).Limit(1000).Execute()

I didn't have this problem with older versions 3.x.x.

If i set cable end to A or B, it will work. But not all interfaces had set cable_end in netbox and i cannot get all interfaces which i need.

Netbox server version is 4.1.11

@nutgood
Copy link
Collaborator

nutgood commented Feb 10, 2025

Can you try with '@v4.2.2-1' ?

go get github.com/netbox-community/go-netbox/v4@v4.2.2-1

@lukas016
Copy link
Author

it works now. thx

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

No branches or pull requests

2 participants