Skip to content
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

Create or extend functional roles for virtual machines #1493

Closed
candlerb opened this issue Sep 15, 2017 · 4 comments
Closed

Create or extend functional roles for virtual machines #1493

candlerb opened this issue Sep 15, 2017 · 4 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@candlerb
Copy link
Contributor

Issue type

[X] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: v2.2-beta1

Description

I would like Virtual Machines to have a "Role", just like Devices. They can be taken from the same set of Device Roles.

Use case:

  • Being able to tag each VM that its primary role is "Database", "Web server", "Storage server", "Firewall" etc
@jeremystretch
Copy link
Member

Does it make sense to use the same set of roles for VMs as for devices though? You wouldn't assign a VM the role of PDU, NAS, console server, etc.

We could either create a separate set of roles only for VMs, or we could extend the existing role model to include a boolean field indicating whether it's applicable for VMs.

@jeremystretch jeremystretch added beta type: feature Introduction of new functionality to the application labels Sep 15, 2017
@lampwins
Copy link
Contributor

I like the boolean option on the existing model and I think it should also be extended to the platform model as the same argument could be made there.

@jeremystretch jeremystretch changed the title Virtualization: roles Create or extend functional roles for virtual machines Sep 15, 2017
@darkstar
Copy link

At least a NAS could very well be a VM (some hyperconverged solutions use VMs to serve CIFS/NFS to the outside world, and there are clustered and virtualized storage systems that provide multi-tenant capable isolated virtual NAS/SAN instances)

@jeremystretch
Copy link
Member

Implemented the base relationship in 6243fbf. Will experiment with adding per-model flags to the DeviceRole model shortly.

jeremystretch added a commit that referenced this issue Sep 29, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

4 participants