The vmware_nsx.shell.admin.plugins.common.utils
Module¶
-
vmware_nsx.shell.admin.plugins.common.utils.
fix_mismatches_handler
(resource)¶
-
vmware_nsx.shell.admin.plugins.common.utils.
get_plugin_filters
(context, plugin)¶
-
vmware_nsx.shell.admin.plugins.common.utils.
list_handler
(resource)¶
-
vmware_nsx.shell.admin.plugins.common.utils.
list_mismatches_handler
(resource)¶
-
vmware_nsx.shell.admin.plugins.common.utils.
output_header
(func)¶ Decorator to demarcate the output of various hooks.
Based on the callback function name we add a header to the cli output. Callback name’s should follow the convention of component_operation_it_does to leverage the decorator
-
vmware_nsx.shell.admin.plugins.common.utils.
parse_multi_keyval_opt
(opt_list)¶ Converts a MutliStrOpt to a key-value dict
-
vmware_nsx.shell.admin.plugins.common.utils.
query_yes_no
(question, default='yes')¶ Ask a yes/no question via raw_input() and return their answer.
“question” is a string that is presented to the user. “default” is the presumed answer if the user just hits <Enter>.
It must be “yes” (the default), “no” or None (meaning an answer is required of the user).The “answer” return value is True for “yes” or False for “no”.