-
Notifications
You must be signed in to change notification settings - Fork 78
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
Feature request: Associate virtual machines to devices #336
Comments
Hello @TiagoTT |
Hello @CllaudiaB , |
Hello @CllaudiaB , Thank you for your time! If I understand correctly, the new The commit in which you switched from In have ported the use of And removed the duplicated definition of The other typos that I had in the earlier version have been fixed. |
Hello @TiagoTT, Thank you as well for your time. Example:
I use the I need to check for other types of hypervisors to see if there are commands that list the name directly. |
Hello @CllaudiaB, Happy New Year! I have ported your changes and our branches are now equal. I have tested and I am happy with the result. While I tested the current version successfully, I noticed that the changes introduced to the Originally I had imagined that whatever the format of the output of the VM list command on the hypervisor, the user could always If we keep the new and more secure and robust command execution mechanism, we will need to add a parameter so that the user can optionally configure a regular expression to apply to the output of the command, as it is no longer possible to use any other shell commands to format the text. What do you think? Also, while trying to test on some of our servers I was faced with installation problems, which I think are caused by the transition from |
I have implemented and tested a simple solution for the configurable parsing of the output of the command to list the virtualization guests, but did not include it in the branch of the current PR. |
Hello @TiagoTT, Thank you, Happy New Year! About the VM names, we'll go with your suggestion. It will be up to the user to create a script to produce a clean list of VM names. In my case, for Proxmox, I created a script using |
It would be useful to link virtual machines to the hypervisor devices in Netbox.
The following needs to happen:
The netbox-agent could discover the virtual machines when executed on the hypervisor devices, by executing a command given in the configuration.
For each virtual machine found on the hypervisor, it could search for the virtual machine object in Netbox, create it if missing or update it if it already exists, and set the device of the virtual machines to match the hypervisor device.
For each virtual machine already associated with the hypervisor in Netbox, if could check if it is still found on the hypervisor device and remove the association in Netbox otherwise.
A proposed implementation was submitted in #327 .
The text was updated successfully, but these errors were encountered: