Skip to content

Allow the assignment of virtual machines directly to sites #5303

@jeremystretch

Description

@jeremystretch

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.8

Proposed Functionality

Allow the creation of a virtual machine without designating a cluster. Allow virtual machines to be assigned to sites directly, with the optional election of assignment to a cluster within that site. This would largely mirror the ability to assign a device to a site and, optionally, to a rack within that site.

Use Case

Allows for simplified modeling of virtual machines by obviating the need to define clusters, and allows for optimized filtering of virtual machines by site.

Database Changes

  • Add a site ForeignKey field to the VirtualMachine model
  • Make the cluster field optional
  • Extend model validation to prohibit the assignment of a VM to a cluster outside its site

External Dependencies

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions