Fixes #3868: Fix creation of interfaces for virtual machines

This commit is contained in:
Jeremy Stretch
2020-01-09 14:53:18 -05:00
parent 11b2ae0504
commit 414c10af53
6 changed files with 31 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
from dcim.choices import InterfaceTypeChoices
from utilities.choices import ChoiceSet
@@ -22,3 +23,16 @@ class VirtualMachineStatusChoices(ChoiceSet):
STATUS_ACTIVE: 1,
STATUS_STAGED: 3,
}
#
# Interface types (for VirtualMachines)
#
class VMInterfaceTypeChoices(ChoiceSet):
TYPE_VIRTUAL = InterfaceTypeChoices.TYPE_VIRTUAL
CHOICES = (
(TYPE_VIRTUAL, 'Virtual'),
)