mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Remove VirtualDeviceContextTypeChoices
This commit is contained in:
parent
a33b2a64bf
commit
c3ed3ab439
@ -1416,57 +1416,3 @@ class VirtualDeviceContextStatusChoices(ChoiceSet):
|
|||||||
(STATUS_ACTIVE, 'Active', 'green'),
|
(STATUS_ACTIVE, 'Active', 'green'),
|
||||||
(STATUS_OFFLINE, 'Offline', 'red'),
|
(STATUS_OFFLINE, 'Offline', 'red'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class VirtualDeviceContextTypeChoices(ChoiceSet):
|
|
||||||
|
|
||||||
CISCO_NEXUS_VDC = 'cisco-nexus-vdc'
|
|
||||||
CISCO_ASA_CONTEXT = 'cisco-asa-context'
|
|
||||||
CISCO_FTD_INSTANCE = 'cisico-ftd-instance'
|
|
||||||
JUNIPER_VR = 'juniper-virtualrouter'
|
|
||||||
FORTINET_VDOM = 'fortinet-virtualdomain'
|
|
||||||
PALOALTO_VSYS = 'paloalto-virtualsystem'
|
|
||||||
CHECKPOINT_VSYS = 'checkpoint-virtualsystem'
|
|
||||||
|
|
||||||
OTHER_VIRTUALCONTEXT = 'other-virtualcontext'
|
|
||||||
|
|
||||||
CHOICES = (
|
|
||||||
(
|
|
||||||
'Cisco',
|
|
||||||
(
|
|
||||||
(CISCO_NEXUS_VDC, 'Nexus VDC'),
|
|
||||||
(CISCO_ASA_CONTEXT, 'ASA Context'),
|
|
||||||
(CISCO_FTD_INSTANCE, 'FTD Instance'),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
(
|
|
||||||
'Juniper',
|
|
||||||
(
|
|
||||||
(JUNIPER_VR, 'Virtual Router'),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
(
|
|
||||||
'Fortinet',
|
|
||||||
(
|
|
||||||
(FORTINET_VDOM, 'Virtual Domain'),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
(
|
|
||||||
'Palo Alto',
|
|
||||||
(
|
|
||||||
(PALOALTO_VSYS, 'Virtual System'),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
(
|
|
||||||
'Checkpoint',
|
|
||||||
(
|
|
||||||
(CHECKPOINT_VSYS, 'Virtual System'),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
(
|
|
||||||
'Other',
|
|
||||||
(
|
|
||||||
(OTHER_VIRTUALCONTEXT, 'Virtual Context'),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
@ -4,7 +4,7 @@ from django import forms
|
|||||||
from django.db.models.signals import post_save, post_delete, pre_delete, m2m_changed
|
from django.db.models.signals import post_save, post_delete, pre_delete, m2m_changed
|
||||||
from django.dispatch import receiver
|
from django.dispatch import receiver
|
||||||
|
|
||||||
from .choices import CableEndChoices, LinkStatusChoices, VirtualDeviceContextTypeChoices
|
from .choices import CableEndChoices, LinkStatusChoices
|
||||||
from .models import Cable, CablePath, CableTermination, Device, PathEndpoint, PowerPanel, Rack, Location, \
|
from .models import Cable, CablePath, CableTermination, Device, PathEndpoint, PowerPanel, Rack, Location, \
|
||||||
VirtualChassis, VirtualDeviceContext, Interface
|
VirtualChassis, VirtualDeviceContext, Interface
|
||||||
from .models.cables import trace_paths
|
from .models.cables import trace_paths
|
||||||
|
Loading…
Reference in New Issue
Block a user