-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat: Adding support for fetching avalible ip from multiple subnets. #580
base: master
Are you sure you want to change the base?
Conversation
Added resource_netbox_available_ip_address_ultiple_cidrs
Is this something that can be built into the existing available_ip resource? |
Yes, actually. Would have to add `prefix_ids` and `ip_range_ids` to the schema and update the create function to support multiple ids. If you preferer that I can move my changes in there?
…________________________________
From: fbreckle ***@***.***>
Sent: Friday, May 3, 2024 15:21
To: e-breuninger/terraform-provider-netbox ***@***.***>
Cc: Sander Skjulsvik ***@***.***>; Author ***@***.***>
Subject: Re: [e-breuninger/terraform-provider-netbox] Adding support for fetching avalible ip from multiple subnets. (PR #580)
Is this something that can be built into the existing available_ip resource?
—
Reply to this email directly, view it on GitHub<#580 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUUXGO5XBDHJKBPLJ4AJDSDZAOFMJAVCNFSM6AAAAABHDZFELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGAYDQOJZGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Move-multiple-cidrs-into-avalible-ip
… to []int64 and used it on prefixIDs and rangeIDs
This is for outputting which prefix_id or ip_range_id was selected.
…he nil pointer reference
Did not get ranges to work. Got nil in payload. So I will remove the support for multiple ranges |
Nvm, The nil payload was because of typo |
…to make this mistake again.
…x lenght then the Create and update function dissagrees, causing none zero plan after apply.
…terraform sdk isCIDR validate fucn
…n createPayloadHandler to payloadHandlerCreate
|
Seems like my tests are now failing. |
@fbreckle or someone else, this is ready for a review. Please let me know of you have any comments on this feature. |
The errors in your test regarding custom fields are just a race condition we currently have. My guess is that it happens during parallel tests when one test introduces a custom field while your own test runs, causing the api to return an unexpected custom field in your test. |
Can you allow me to push to your repo? I have some changes and just found that i cannot push there. |
Hi, sorry for my delayed answer, I had a temporary distraction. We cannot give you write access to this repo, could you open a pr to my repo? |
Hi, have you had a chance to take a look at my changes? |
Hi, is this is a blocker on your side to get this pr merged? |
Feature: add support for multiple subnets for available_ip_address.
This will allow the resource
available_ip_address
to get an ip address from a collection of ip_ranges or subnets.This solves the problem where we have run out of IP addresses in a subnet, and now need to create more with the same IAC setup