|
|
@@ -2352,6 +2352,10 @@ class ConsolePortCSVForm(CSVModelForm):
|
|
|
queryset=Device.objects.all(),
|
|
|
to_field_name='name'
|
|
|
)
|
|
|
+ type = CSVChoiceField(
|
|
|
+ choices=ConsolePortTypeChoices,
|
|
|
+ help_text='Port type'
|
|
|
+ )
|
|
|
|
|
|
class Meta:
|
|
|
model = ConsolePort
|
|
|
@@ -2425,6 +2429,10 @@ class ConsoleServerPortCSVForm(CSVModelForm):
|
|
|
queryset=Device.objects.all(),
|
|
|
to_field_name='name'
|
|
|
)
|
|
|
+ type = CSVChoiceField(
|
|
|
+ choices=ConsolePortTypeChoices,
|
|
|
+ help_text='Port type'
|
|
|
+ )
|
|
|
|
|
|
class Meta:
|
|
|
model = ConsoleServerPort
|
|
|
@@ -2510,6 +2518,10 @@ class PowerPortCSVForm(CSVModelForm):
|
|
|
queryset=Device.objects.all(),
|
|
|
to_field_name='name'
|
|
|
)
|
|
|
+ type = CSVChoiceField(
|
|
|
+ choices=PowerPortTypeChoices,
|
|
|
+ help_text='Port type'
|
|
|
+ )
|
|
|
|
|
|
class Meta:
|
|
|
model = PowerPort
|
|
|
@@ -2630,6 +2642,10 @@ class PowerOutletCSVForm(CSVModelForm):
|
|
|
queryset=Device.objects.all(),
|
|
|
to_field_name='name'
|
|
|
)
|
|
|
+ type = CSVChoiceField(
|
|
|
+ choices=PowerOutletTypeChoices,
|
|
|
+ help_text='Outlet type'
|
|
|
+ )
|
|
|
power_port = CSVModelChoiceField(
|
|
|
queryset=PowerPort.objects.all(),
|
|
|
required=False,
|