No need for PCI interface class options during interface creation

A change has been made in forms.py to remove
'pci-passthrough' and 'pci-sriov' as an ifclass when creating an
interface. As the code stands, provider networks are only listed for
either 'pci-passthrough' and 'pci-sriov' when editing an interface, and
a PCI interface cannot be created if a provider network is not selected.
Thus, those options have been removed from the creation form.

Closes-Bug: 1795717

Change-Id: I898d21807d16375d3ccaa40c29a3920656aad44b
Signed-off-by: Patrick Bonnell <patrick.bonnell@windriver.com>
This commit is contained in:
Patrick Bonnell 2018-10-03 13:39:49 -04:00
parent 281bcabe48
commit fe946621b1
2 changed files with 3 additions and 5 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="starlingx-dashboard"
TIS_PATCH_VER=14
TIS_PATCH_VER=15

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2013-2016 Wind River Systems, Inc.
# Copyright (c) 2013-2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
@ -144,9 +144,7 @@ class AddInterface(forms.SelfHandlingForm):
INTERFACE_CLASS_CHOICES = (
('none', _("none")),
('platform', _("platform")),
('data', _("data")),
('pci-sriov', _("pci-sriov")),
('pci-passthrough', _("pci-passthrough")),
('data', _("data"))
)
INTERFACE_TYPE_CHOICES = (