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

Add VRF data source and support for vrf_id in netbox_ip_address res… #26

Merged
merged 2 commits into from Dec 24, 2020
Merged

Conversation

rthomson
Copy link

@rthomson rthomson commented Dec 10, 2020

Add a new "netbox_vrf" data source and support for "vrf_id" in the "netbox_ip_address" resource.

The data source allows for looking up vrf_id by name, which can then be passed to a "netbox_ip_address" resource in order to support linking an IP to a VRF in netbox.

I'm definitely not a golang developer (first timer!) so I just used the existing data sources and resources from this project as a reference guide/template. Also, I really have no clue if I got the tests right but "make test" doesn't seem to complain.

@rthomson
Copy link
Author

Looks like I got some of the tests wrong (I specified netbox_vrf as a resource, not data source)...

I'm developing on WSL1 so looks like I'll need get my environment setup for Docker so I can run "testacc" locally.

@rthomson rthomson changed the title Added VRF data source and support for vrf_id in netbox_ip_address res… Add VRF data source and support for vrf_id in netbox_ip_address res… Dec 10, 2020
@fbreckle fbreckle self-assigned this Dec 16, 2020
@fbreckle fbreckle merged commit 9ddf782 into e-breuninger:master Dec 24, 2020
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.

2 participants