diff --git a/sysinv/cgts-client/cgts-client/cgtsclient/v1/isystem_shell.py b/sysinv/cgts-client/cgts-client/cgtsclient/v1/isystem_shell.py index 52003df00a..dbe96e970a 100644 --- a/sysinv/cgts-client/cgts-client/cgtsclient/v1/isystem_shell.py +++ b/sysinv/cgts-client/cgts-client/cgtsclient/v1/isystem_shell.py @@ -60,7 +60,7 @@ def do_show(cc, args): help='The name of the system') @utils.arg('-s', '--sdn_enabled', metavar='', - choices=['true', 'false'], + choices=['true', 'false', 'True', 'False'], help='The SDN enabled or disabled flag') @utils.arg('-t', '--timezone', metavar='', @@ -79,7 +79,7 @@ def do_show(cc, args): help='The location of the system') @utils.arg('-p', '--https_enabled', metavar='', - choices=['true', 'false'], + choices=['true', 'false', 'True', 'False'], help='The HTTPS enabled or disabled flag') @utils.arg('-v', '--vswitch_type', metavar='', diff --git a/sysinv/cgts-client/cgts-client/cgtsclient/v1/network_shell.py b/sysinv/cgts-client/cgts-client/cgtsclient/v1/network_shell.py index 1750257069..3487fd8713 100644 --- a/sysinv/cgts-client/cgts-client/cgtsclient/v1/network_shell.py +++ b/sysinv/cgts-client/cgts-client/cgtsclient/v1/network_shell.py @@ -47,7 +47,7 @@ def do_network_list(cc, args): help="Type of network [REQUIRED]") @utils.arg('dynamic', metavar='', - choices=['true', 'false'], + choices=['true', 'false', 'True', 'False'], help="dynamic [REQUIRED]") @utils.arg('pool_uuid', metavar='', @@ -57,6 +57,10 @@ def do_network_add(cc, args): field_list = ['name', 'type', 'dynamic', 'pool_uuid'] + # make sure dynamic is lower + if args.dynamic is not None: + args.dynamic = args.dynamic.lower() + # Prune input fields down to required/expected values data = dict((k, v) for (k, v) in vars(args).items() if k in field_list and not (v is None)) diff --git a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/system.py b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/system.py index 7431c7910b..2f84d6fdf4 100644 --- a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/system.py +++ b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/system.py @@ -422,11 +422,11 @@ class SystemController(rest.RestController): timezone)) if p['path'] == '/sdn_enabled': - sdn_enabled = p['value'] + sdn_enabled = p['value'].lower() patch.remove(p) if p['path'] == '/https_enabled': - https_enabled = p['value'] + https_enabled = p['value'].lower() patch.remove(p) if p['path'] == '/distributed_cloud_role':