Remove vswitch_type validation

This commit removes validation of vswitch_type from sysinv and
cgts-client.
This is required in order to allow users to specify a custom
vswitch_type.

Story: 2003526
Task: 24803
Change-Id: I25cf2c2b81a3525786fa20720edb5425d3c90a87
Signed-off-by: Joseph Richard <Joseph.Richard@windriver.com>
This commit is contained in:
Joseph Richard
2018-07-27 10:34:29 -04:00
parent 65faa5121b
commit 02fc7d7e71
2 changed files with 0 additions and 6 deletions

View File

@@ -82,7 +82,6 @@ def do_show(cc, args):
help='The HTTPS enabled or disabled flag')
@utils.arg('-v', '--vswitch_type',
metavar='<vswitch_type>',
choices=['ovs-dpdk'],
help='The vswitch type for the system')
@utils.arg('-S', '--security_feature',
metavar='<security_feature>',

View File

@@ -48,8 +48,6 @@ from sysinv.openstack.common.gettextutils import _
LOG = log.getLogger(__name__)
VALID_VSWITCH_TYPES = [constants.VSWITCH_TYPE_OVS_DPDK]
class System(base.APIBase):
"""API representation of a system.
@@ -486,9 +484,6 @@ class SystemController(rest.RestController):
" as %s" % rpc_isystem['distributed_cloud_role']))
if 'vswitch_type' in updates:
if vswitch_type not in VALID_VSWITCH_TYPES:
raise wsme.exc.ClientSideError(_("unsupported vswitch_type: %s"
% vswitch_type))
if vswitch_type == rpc_isystem['capabilities']['vswitch_type']:
raise wsme.exc.ClientSideError(_("vswitch_type is already set"
" as %s" % vswitch_type))