-
-
Notifications
You must be signed in to change notification settings - Fork 883
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 optional primary_ip on virtual machines initializer #301
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.
Thank you for the PR. This looks very promising already and I will test it shortly.
In the meantime, could you add an example with primary_ipv4
and primary_ipv6
to one of the devices in devices.yml
, please?
Please make sure that the information you add is consistent, i.e. that all the initializer scripts work afterwards. You can locally run ./test.sh
to do that. It will uncomment all initializers and try to import them. (You might want to temporarily comment-out test_netbox_unit_tests
to speed up the execution of test.sh
.)
Adding Do you want I add such startup script, for example |
You're saying that when the devices/virtual machines are created, the IP's are not yet created. Did I get this right? This makes sense. Let me summarize my thoughts: I believe a separate script would be in order that runs when both – the ip addresses and the devices/virtual machines – have been created. Such a script would have to run after the Did I miss something? |
Yes, that's right, but it seem counter-intuitive to me at first, as I saw we could already use I wondered if I could move the I've pushed a script to link primary ips after the |
Thank you for this PR and your changes. I think this is good, but I hadn't had the time to run it locally. That's the only reason why it's not yet approved :) |
New Behavior
Allow to set virtual machines primary ip via initializer.
Contrast to Current Behavior
primary_ip4
andprimary_ip6
value oninitializers/virtual_machines.yml
are ignored.Discussion: Benefits and Drawbacks
It add an easy way to set primary IP for VM as we could for devices.
Proposed Release Note Entry
Double Check
develop
branch.