-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cache the number of each component type assigned to devices/VMs #6347
Comments
This might also be a use case for CTE; see #6587. |
I also like to verify that devices match their device type templates (you know something's up if a 24port 1PSU switch suddenly has 29 interfaces and 3 power ports). So maybe you'll find it useful to add same data to device types, maybe expand the idea to strict matching devices to their types or syncing (now I do this with API and Bash). |
pushed to 3.6 milestone |
Proposed Changes
Add the following integer fields to dcim.Device:
_console_port_count
_console_server_port_count
_power_port_count
_power_outlet_count
_interface_count
_front_port_count
_rear_port_count
_device_bay_count
_inventory_item_count
Add the following integer fields to virtualization.VirtualMachine:
_interface_count
These fields would be automatically populated upon creating/modifying/deleting the relevant child components.
Justification
The text was updated successfully, but these errors were encountered: