summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhanghao2 <zhanghao2@cmss.chinamobile.com>2019-07-16 22:41:52 -0400
committerzhanghao2 <zhanghao2@cmss.chinamobile.com>2019-07-16 22:47:48 -0400
commit34924865b3f684fa22f6356c64d03d42d11d46f6 (patch)
treec0f1ba9e594c78a73d05894ed68f974b109ad044
parentcf95be3ea5e4396f26564a76e5ab67342afe6de5 (diff)
downloadpython-neutronclient-34924865b3f684fa22f6356c64d03d42d11d46f6.tar.gz
Add friendly event hints for logging
When creating a network log with the '--event' parameter, it is impossible to know which parameter values can be specified, and it is necessary to add a prompt. Change-Id: I6aa4f95b650cdc7b04e74b851a78a2ae42fc288a
-rw-r--r--neutronclient/osc/v2/logging/network_log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neutronclient/osc/v2/logging/network_log.py b/neutronclient/osc/v2/logging/network_log.py
index 1946a40..df48fc1 100644
--- a/neutronclient/osc/v2/logging/network_log.py
+++ b/neutronclient/osc/v2/logging/network_log.py
@@ -118,7 +118,7 @@ class CreateNetworkLog(command.ShowOne):
help=_('Name for the network log'))
parser.add_argument(
'--event',
- metavar='<event>',
+ metavar='{ALL,ACCEPT,DROP}',
choices=['ALL', 'ACCEPT', 'DROP'],
type=nc_utils.convert_to_uppercase,
help=_('An event to store with log'))