Skip to content

Add devices and virtualmachines relations to virtualization.models.Cluster #21341

@lbo462

Description

@lbo462

NetBox version

v4.4.10

Feature type

Data model extension

Proposed functionality

Add a GenericRelation to clusters, linking devices and virtual machines, as done for interfaces and ip addresses. See

ip_addresses = GenericRelation(

Use case

This would allow using device_count and virtualmachine_count within nbshell and netbox scripts, as those two attributes are already returned by the API.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxstatus: needs triageThis issue is awaiting triage by a maintainertype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions