diff --git a/lib/cli.py b/lib/cli.py index cde99913cf37f9bf3f2ea670c0485cc720b7e54e..5cceb7b63b0e9e737c75d8663a2f24614c893c7f 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -185,6 +185,8 @@ __all__ = [ "VERBOSE_OPT", "VG_NAME_OPT", "YES_DOIT_OPT", + "DISK_STATE_OPT", + "HV_STATE_OPT", # Generic functions for CLI programs "ConfirmOperation", "GenericMain", @@ -1293,6 +1295,18 @@ IGNORE_ERRORS_OPT = cli_option("-I", "--ignore-errors", default=[], choices=list(constants.CV_ALL_ECODES_STRINGS), help="Error code to be ignored") +DISK_STATE_OPT = cli_option("--disk-state", default=[], dest="disk_state", + action="append", + help=("Specify disk state information in the format" + " storage_type/identifier:option=value,..."), + type="identkeyval") + +HV_STATE_OPT = cli_option("--hypervisor-state", default=[], dest="hv_state", + action="append", + help=("Specify hypervisor state information in the" + " format hypervisor:option=value,..."), + type="identkeyval") + #: Options provided by all commands COMMON_OPTS = [DEBUG_OPT]