From fe946621b1fa9aee347a5bfa4aeb28a7d1192f29 Mon Sep 17 00:00:00 2001 From: Patrick Bonnell Date: Wed, 3 Oct 2018 13:39:49 -0400 Subject: [PATCH] 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 --- starlingx-dashboard/centos/build_srpm.data | 2 +- .../dashboards/admin/inventory/interfaces/forms.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/starlingx-dashboard/centos/build_srpm.data b/starlingx-dashboard/centos/build_srpm.data index 523e66bd..dc85fff0 100644 --- a/starlingx-dashboard/centos/build_srpm.data +++ b/starlingx-dashboard/centos/build_srpm.data @@ -1,2 +1,2 @@ SRC_DIR="starlingx-dashboard" -TIS_PATCH_VER=14 +TIS_PATCH_VER=15 diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py index 37eb5889..ae7955cd 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py @@ -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 = (