-
Notifications
You must be signed in to change notification settings - Fork 167
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 external ipam to subnet module #967
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I give it a 👍 codewise.
A confirmation it solves #966 would be good.
@mdellweg not sure if the change is enough. If I select |
what can you select there? in the API, I only see "external ipam proxy" which is the smart proxy running the ipam I guess. here is the api documentation I am looking at: https://theforeman.org/api/2.1/apidoc/v2/subnets/create.html |
b3fc849
to
e0e108d
Compare
Reading the code, it seems the group is not exposed via the API :( |
@cmeissner how useful (or not?) is it to set the subnet to "external" but not being able to select a group? the UI says "optional", so I'd guess it's still a bit useful? |
For our use case we grouping dozen of ip networks to a given site in this groups aka sections in phpIPAM. So we unfortunately need this field. :-( |
but in a simpler setup, this would work without, right? I'll open an issue against Foreman to expose that via the API, but don't expect a too quick turn around. |
Maybe it would work but we can't test it this way. Thanks for opening the issue against Foreman but I am afraid that we need to find a workaround for that. How long will it last that the above change is in a new ansible-modules version available? So we can set configure the subnets for external IPAM and its smart-proxy and only have to set the IPAM group for each by bio script. |
I am planning a release (to galaxy) probably tomorrow. |
Is it possible that the optional option is only missing from the apipie docs? (We had that before...) Edit: Too sad, but i found nothing in the api controller. |
@mdellweg no, the controller doesn't know about it. I've opened https://projects.theforeman.org/issues/30890 |
I can not promise anything, but I'll try it tomorrow morning to test it locally if I found time. |
@evgeni I've tested your change, it works as expected. As long as we don't use same subnets in different sections we can live without the group field otherwise we have to add the value by hand. Can you give me a ping please if the new version is published to galaxy? |
@cmeissner cool, thanks a ton for testing this! I'll ping you on the release PR and you can expect it to land on galaxy something like 10 minutes after the PR is merged (yay, automation!) |
Fixes: #966