Module containing Ganeti's command line parsing options
Class |
|
Custom option class for optparse. |
Function | check |
Custom parser for yes/no options. |
Function | check |
Custom parser for filter rule actions. |
Function | check |
Custom parser for ident:key=val,key=val options. |
Function | check |
Custom parser for JSON arguments. |
Function | check |
Custom parser class for private and secret key=val,key=val options. |
Function | check |
Custom parser class for key=val,key=val options. |
Function | check |
Custom parser for comma-separated lists. |
Function | check |
Custom parser for float numbers which might be also defaults. |
Function | check |
Custom parser for "ident:key=val,key=val/ident:key=val//ident:.." options. |
Function | check |
OptParsers custom converter for units. |
Constant | ABSOLUTE |
Undocumented |
Constant | ADD |
Undocumented |
Constant | ADD |
Undocumented |
Constant | ALL |
Undocumented |
Constant | ALLOC |
Undocumented |
Constant | ALLOCATABLE |
Undocumented |
Constant | ALLOW |
Undocumented |
Constant | AUTO |
Undocumented |
Constant | AUTO |
Undocumented |
Constant | BACKEND |
Undocumented |
Constant | BLK |
Undocumented |
Constant | CAPAB |
Undocumented |
Constant | CAPAB |
Undocumented |
Constant | CLEANUP |
Undocumented |
Constant | CLUSTER |
Undocumented |
Constant | COMMIT |
Undocumented |
Constant | COMMON |
Undocumented |
Constant | COMMON |
Undocumented |
Constant | COMPRESS |
Undocumented |
Constant | COMPRESSION |
Undocumented |
Constant | CONFIRM |
Undocumented |
Constant | CP |
Undocumented |
Constant | DEBUG |
Undocumented |
Constant | DEBUG |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | DISK |
Undocumented |
Constant | DISK |
Undocumented |
Constant | DISK |
Undocumented |
Constant | DISK |
Undocumented |
Constant | DISKIDX |
Undocumented |
Constant | DRAINED |
Undocumented |
Constant | DRBD |
Undocumented |
Constant | DRY |
Undocumented |
Constant | DST |
Undocumented |
Constant | EARLY |
Undocumented |
Constant | ENABLED |
Undocumented |
Constant | ENABLED |
Undocumented |
Constant | ENABLED |
Undocumented |
Constant | ENABLED |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | EXT |
Undocumented |
Constant | FAILURE |
Undocumented |
Constant | FIELDS |
Undocumented |
Constant | FILESTORE |
Undocumented |
Constant | FILESTORE |
Undocumented |
Constant | FORCE |
Undocumented |
Constant | FORCE |
Undocumented |
Constant | FORCE |
Undocumented |
Constant | FORCE |
Undocumented |
Constant | FORTHCOMING |
Undocumented |
Constant | GATEWAY6 |
Undocumented |
Constant | GATEWAY |
Undocumented |
Constant | GLOBAL |
Undocumented |
Constant | GLOBAL |
Undocumented |
Constant | GLOBAL |
Undocumented |
Constant | HELPER |
Undocumented |
Constant | HELPER |
Undocumented |
Constant | HID |
Undocumented |
Constant | HOTPLUG |
Undocumented |
Constant | HOTPLUG |
Undocumented |
Constant | HV |
Undocumented |
Constant | HVLIST |
Undocumented |
Constant | HVOPTS |
Undocumented |
Constant | HYPERVISOR |
Undocumented |
Constant | IALLOCATOR |
Undocumented |
Constant | IDENTIFY |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | IGNORE |
Undocumented |
Constant | INCLUDEDEFAULTS |
Undocumented |
Constant | INSTALL |
Undocumented |
Constant | INSTANCE |
Undocumented |
Constant | INSTANCE |
Undocumented |
Constant | INSTANCE |
Undocumented |
Constant | INTERVAL |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | IPOLICY |
Undocumented |
Constant | LONG |
Undocumented |
Constant | MAC |
Undocumented |
Constant | MAINTAIN |
Undocumented |
Constant | MASTER |
Undocumented |
Constant | MASTER |
Undocumented |
Constant | MAX |
Undocumented |
Constant | MC |
Undocumented |
Constant | MIGRATION |
Undocumented |
Constant | MODIFY |
Undocumented |
Constant | NET |
Undocumented |
Constant | NETWORK6 |
Undocumented |
Constant | NETWORK |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NEW |
Undocumented |
Constant | NIC |
Undocumented |
Constant | NO |
Undocumented |
Constant | NO |
Undocumented |
Constant | NO |
Undocumented |
Constant | NOCONFLICTSCHECK |
Undocumented |
Constant | NODE |
Undocumented |
Constant | NODE |
Undocumented |
Constant | NODE |
Undocumented |
Constant | NODE |
Undocumented |
Constant | NODE |
Undocumented |
Constant | NODEGROUP |
Undocumented |
Constant | NODEGROUP |
Undocumented |
Constant | NOHDR |
Undocumented |
Constant | NOIPCHECK |
Undocumented |
Constant | NOMODIFY |
Undocumented |
Constant | NOMODIFY |
Undocumented |
Constant | NONAMECHECK |
Undocumented |
Constant | NONICS |
Undocumented |
Constant | NONLIVE |
Undocumented |
Constant | NONPLUS1 |
Undocumented |
Constant | NORUNTIME |
Undocumented |
Constant | NOSHUTDOWN |
Undocumented |
Constant | NOSSH |
Undocumented |
Constant | NOSTART |
Undocumented |
Constant | NOVOTING |
Undocumented |
Constant | NWSYNC |
Undocumented |
Constant | OFFLINE |
Undocumented |
Constant | OFFLINE |
Undocumented |
Constant | ON |
Undocumented |
Constant | ON |
Undocumented |
Constant | ONLINE |
Undocumented |
Constant | OOB |
Undocumented |
Constant | OPPORTUNISTIC |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OPT |
Undocumented |
Constant | OS |
Undocumented |
Constant | OS |
Undocumented |
Constant | OSPARAMS |
Undocumented |
Constant | OSPARAMS |
Undocumented |
Constant | OSPARAMS |
Undocumented |
Constant | POWER |
Undocumented |
Constant | PREALLOC |
Undocumented |
Constant | PRIMARY |
Undocumented |
Constant | PRIMARY |
Undocumented |
Constant | PRINT |
Undocumented |
Constant | PRIORITY |
Undocumented |
Constant | RAPI |
Undocumented |
Constant | READD |
Undocumented |
Constant | REASON |
Undocumented |
Constant | REBOOT |
Undocumented |
Constant | REMOVE |
Undocumented |
Constant | REMOVE |
Undocumented |
Constant | REMOVE |
Undocumented |
Constant | RESERVED |
Undocumented |
Constant | ROMAN |
Undocumented |
Constant | RQL |
Undocumented |
Constant | RUNTIME |
Undocumented |
Constant | SECONDARY |
Undocumented |
Constant | SECONDARY |
Undocumented |
Constant | SELECT |
Undocumented |
Constant | SEP |
Undocumented |
Constant | SEQUENTIAL |
Undocumented |
Constant | SHOW |
Undocumented |
Constant | SHOWCMD |
Undocumented |
Constant | SHUTDOWN |
Undocumented |
Constant | SINGLE |
Undocumented |
Constant | SPECS |
Undocumented |
Constant | SPECS |
Undocumented |
Constant | SPECS |
Undocumented |
Constant | SPECS |
Undocumented |
Constant | SPECS |
Undocumented |
Constant | SPICE |
Undocumented |
Constant | SPICE |
Undocumented |
Constant | SPLIT |
Undocumented |
Constant | SRC |
Undocumented |
Constant | SRC |
Undocumented |
Constant | SSH |
Undocumented |
Constant | SSH |
Undocumented |
Constant | STARTUP |
Undocumented |
Constant | STATIC |
Undocumented |
Constant | SUBMIT |
Undocumented |
Constant | SUBMIT |
Undocumented |
Constant | SYNC |
Undocumented |
Constant | TAG |
Undocumented |
Constant | TAG |
Undocumented |
Constant | TIMEOUT |
Undocumented |
Constant | TO |
Undocumented |
Constant | TRANSPORT |
Undocumented |
Constant | UIDPOOL |
Undocumented |
Constant | UN |
Undocumented |
Constant | USE |
Undocumented |
Constant | USE |
Undocumented |
Constant | USEUNITS |
Undocumented |
Constant | VERBOSE |
Undocumented |
Constant | VERIFY |
Undocumented |
Constant | VG |
Undocumented |
Constant | WFSYNC |
Undocumented |
Constant | YES |
Undocumented |
Constant | ZERO |
Undocumented |
Constant | ZEROING |
Undocumented |
Constant | ZEROING |
Undocumented |
Constant | ZEROING |
Undocumented |
Function | _ |
Callback for processing --priority option. |
Function | _ |
Helper function to parse "ident:key=val,key=val" options. |
Function | _ |
Convert a KeyVal string into a dict. |
Function | _ |
Undocumented |
Constant | _PRIONAME |
Undocumented |
Constant | _PRIORITY |
Undocumented |
Constant | _YORNO |
Undocumented |
Custom parser for filter rule actions.
Takes a string, returns an action as a Python object (list or string).
The string "RATE_LIMIT n" becomes `["RATE_LIMIT", n]`. All other strings stay as they are.
Custom parser for ident:key=val,key=val options.
This will store the parsed values as a tuple (ident, {key: val}). As such, multiple uses of this option via action=append is possible.
Custom parser class for private and secret key=val,key=val options.
This will store the parsed values as a dict {key: val}.
Custom parser class for key=val,key=val options.
This will store the parsed values as a dict {key: val}.
Custom parser for "ident:key=val,key=val/ident:key=val//ident:.." options.
Returns | |
list of dictionary | [{ident: {key: val, key: val}, ident: {key: val}}, {ident:..}] |
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Helper function to parse "ident:key=val,key=val" options.
Parameters | |
opt:string | option name, used in error messages |
value:string | expected to be in the format "ident:key=val,key=val,..." |
parse | whether to handle prefixes specially (see _SplitKeyVal ) |
Returns | |
tuple | (ident, {key=val, key=val}) |
Raises | |
errors.ParameterError | in case of duplicates or other parsing errors |
Convert a KeyVal string into a dict.
This function will convert a key=val[,...] string into a dict. Empty values will be converted specially: keys which have the prefix 'no_' will have the value=False and the prefix stripped, keys with the prefix "-" will have value=None and the prefix stripped, and the others will have value=True.
Parameters | |
opt:string | a string holding the option name for which we process the data, used in building error messages |
data:string | a string of the format key=val,key=val,... |
parse | whether to handle prefixes specially |
Returns | |
dict | {key=val, key=val} |
Raises | |
errors.ParameterError | if there are duplicate keys |
Undocumented
Value |
|