vswitch optionality on worker node
Altering vswitch cores now depends on the vswitch_type not the openstack-compute label. We are removing the label dependency for this check. Change-Id: I867028f7d6443de054ab665026ea9f237fc9f81d Story: 2004022 Task: 28327 Signed-off-by: David Sullivan <david.sullivan@windriver.com>
This commit is contained in:
parent
33145c6001
commit
621eb23f7c
|
@ -18,8 +18,6 @@ from horizon import forms
|
|||
from horizon import messages
|
||||
|
||||
from starlingx_dashboard.api import sysinv
|
||||
from starlingx_dashboard.dashboards.admin.inventory.cpu_functions \
|
||||
import utils as cpufunctions_utils
|
||||
from starlingx_dashboard.horizon.forms.fields import DynamicIntegerField
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -148,8 +146,7 @@ class UpdateCpuFunctions(forms.SelfHandlingForm):
|
|||
'platform_processor3'].help_text = \
|
||||
"Processor 3 has %s physical cores." % avail_socket_cores
|
||||
|
||||
if 'worker' not in self.host.subfunctions \
|
||||
or not cpufunctions_utils.has_openstack_compute(self.host):
|
||||
if 'worker' not in self.host.subfunctions:
|
||||
self.fields['vswitch'].widget = forms.widgets.HiddenInput()
|
||||
self.fields[
|
||||
'num_cores_on_processor0'].widget = forms.widgets.HiddenInput()
|
||||
|
|
Loading…
Reference in New Issue