From c3ed3ab439b504ebc88e61c1b6d3f299d18104fe Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Wed, 2 Nov 2022 09:26:08 -0500 Subject: [PATCH] Remove VirtualDeviceContextTypeChoices --- netbox/dcim/choices.py | 54 ------------------------------------------ netbox/dcim/signals.py | 2 +- 2 files changed, 1 insertion(+), 55 deletions(-) diff --git a/netbox/dcim/choices.py b/netbox/dcim/choices.py index e54d5f481..ce637fb3d 100644 --- a/netbox/dcim/choices.py +++ b/netbox/dcim/choices.py @@ -1416,57 +1416,3 @@ class VirtualDeviceContextStatusChoices(ChoiceSet): (STATUS_ACTIVE, 'Active', 'green'), (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'), - ) - ), - ) diff --git a/netbox/dcim/signals.py b/netbox/dcim/signals.py index e04708d2c..ae12613a1 100644 --- a/netbox/dcim/signals.py +++ b/netbox/dcim/signals.py @@ -4,7 +4,7 @@ from django import forms from django.db.models.signals import post_save, post_delete, pre_delete, m2m_changed 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, \ VirtualChassis, VirtualDeviceContext, Interface from .models.cables import trace_paths