Skip to content

Commit

Permalink
Support for reset/image/load activation profiles
Browse files Browse the repository at this point in the history
Details:

* Added command group 'resetprofile' for operations on reset activation
  profiles in classic mode CPCs.

* Added command group 'imageprofile' for operations on image activation
  profiles in classic mode CPCs.

* Added command group 'loadprofile' for operations on load activation
  profiles in classic mode CPCs.

Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Nov 16, 2023
1 parent a291af4 commit 492d93f
Show file tree
Hide file tree
Showing 7 changed files with 3,020 additions and 7 deletions.
9 changes: 9 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ Released: not yet
* Tests: Added an environment variable TESTLOG to enable logging for end2end
tests. (issue #414)

* Added command group 'resetprofile' for operations on reset activation
profiles in classic mode CPCs.

* Added command group 'imageprofile' for operations on image activation
profiles in classic mode CPCs.

* Added command group 'loadprofile' for operations on load activation
profiles in classic mode CPCs.

**Cleanup:**

**Known issues:**
Expand Down
3 changes: 3 additions & 0 deletions zhmccli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
from ._cmd_unmanaged_cpc import * # noqa: F401
from ._cmd_ldap_server_definition import * # noqa: F401
from ._cmd_lpar import * # noqa: F401
from ._cmd_resetprofile import * # noqa: F401
from ._cmd_imageprofile import * # noqa: F401
from ._cmd_loadprofile import * # noqa: F401
from ._cmd_partition import * # noqa: F401
from ._cmd_adapter import * # noqa: F401
from ._cmd_port import * # noqa: F401
Expand Down
1,918 changes: 1,918 additions & 0 deletions zhmccli/_cmd_imageprofile.py

Large diffs are not rendered by default.

612 changes: 612 additions & 0 deletions zhmccli/_cmd_loadprofile.py

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions zhmccli/_cmd_lpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def lpar_show(cmd_ctx, cpc, lpar, **options):
help='The new master userid for IBM zAware. '
'Empty string sets no master userid. '
'(only for LPARs in zaware activation mode).')
@optgroup.option('--zaware-master-password', type=str, required=False,
@optgroup.option('--zaware-master-pw', type=str, required=False,
help='The new master password for IBM zAware. '
'Empty string sets no master password. '
'(only for LPARs in zaware activation mode).')
Expand All @@ -166,7 +166,7 @@ def lpar_show(cmd_ctx, cpc, lpar, **options):
@optgroup.option('--ssc-master-userid', type=str, required=False,
help='The new master userid for the SSC appliance. '
'Empty string sets no master userid.')
@optgroup.option('--ssc-master-password', type=str, required=False,
@optgroup.option('--ssc-master-pw', type=str, required=False,
help='The new master password for the SSC appliance. '
'Empty string sets no master password.')
# TODO: Change SSC master password option to ask for password
Expand All @@ -188,7 +188,7 @@ def lpar_update(cmd_ctx, cpc, lpar, **options):
* The processor capping/sharing/weight related properties cannot be
updated.
* The network-related properties for zaware and ssc cannot be updated.
* The --zaware-master-password and --ssc-master-password options do not
* The --zaware-master-pw and --ssc-master-pw options do not
ask for the password.
"""
cmd_ctx.execute_cmd(lambda: cmd_lpar_update(cmd_ctx, cpc, lpar, options))
Expand Down Expand Up @@ -634,15 +634,15 @@ def cmd_lpar_update(cmd_ctx, cpc_name, lpar_name, options):
properties['zaware-host-name'] = None
if org_options['zaware-master-userid'] == '':
properties['zaware-master-userid'] = None
if org_options['zaware-master-password'] == '':
properties['zaware-master-password'] = None
if org_options['zaware-master-pw'] == '':
properties['zaware-master-pw'] = None

if org_options['ssc-host-name'] == '':
properties['ssc-host-name'] = None
if org_options['ssc-master-userid'] == '':
properties['ssc-master-userid'] = None
if org_options['ssc-master-password'] == '':
properties['ssc-master-password'] = None
if org_options['ssc-master-pw'] == '':
properties['ssc-master-pw'] = None

if org_options['acceptable-status'] is not None:
status_list = org_options['acceptable-status'].split(',')
Expand Down
Loading

0 comments on commit 492d93f

Please sign in to comment.