diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/tables.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/tables.py index e0eb463b..dc4cb7df 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/tables.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/tables.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2013-2021 Wind River Systems, Inc. +# Copyright (c) 2013-2022 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # @@ -19,8 +19,6 @@ import sysinv.common.constants as sysinv_const LOG = logging.getLogger(__name__) -INTERFACE_CLASS_TYPES = ["platform", "data", "pci-sriov", "pci-passthrough"] - class DeleteInterface(tables.DeleteAction): @staticmethod @@ -78,21 +76,15 @@ class CreateInterface(tables.LinkAction): if (host._administrative != 'locked' and not is_aio_sx): return False - count = 0 sriov_count = 0 for i in host.interfaces: if i.ifclass: - count = count + 1 if i.ifclass == sysinv_const.INTERFACE_CLASS_PCI_SRIOV: sriov_count += 1 if is_aio_sx and host._administrative != 'locked' and sriov_count == 0: return False - if host.subfunctions and 'worker' not in host.subfunctions and \ - count >= len(INTERFACE_CLASS_TYPES): - return False - return True