lord-kyron / terraform-provider-phpipam

Terrform provider for PHPIPAM
https://registry.terraform.io/providers/lord-kyron/phpipam/latest
Apache License 2.0
54 stars 30 forks source link

nostrict "yes" #34

Closed pmraz123 closed 2 years ago

pmraz123 commented 2 years ago

Hi

Is it possible to implement nostrict option when we adding IP via terraform to phpipam? It would allow to use broacast and subnet IP.

If I have huge mgmt range /18 for example and building "sub-management" ranges within /18 like /29 i would like to use entire /29 as it is not real subnet. But it is associated to specific resources.

pavel-z1 commented 2 years ago

Hi @pmraz123

I don't see parameter no strict for address controlled in the phpipam documentation https://phpipam.net/api/api_documentation/#addresses

You have example how to use no strict with phpipam API call?

pmraz123 commented 2 years ago

Hi, we "solved" it ...we simply dont use network and broadcast. I have /19 mgmt range and building block of /29 mgmt sub-ranges and wanted to use entire /29 as it is not real "network" . But PHPIPAM didnt allow me set broadcast and network which were legitime IPs. We have now other issue - > request more free IPs in single run from one range. Looks we always get just very 1st one when we want to use it. PHPIPAM itself I think marked/filled all 4 for example but when I want to use that IP in terraform, just very 1st one is returned :(