]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add help strings to Config Options
authorDirk Mueller <dirk@dmllr.de>
Fri, 19 Jul 2013 16:50:26 +0000 (18:50 +0200)
committerDirk Mueller <dirk@dmllr.de>
Sat, 20 Jul 2013 06:34:40 +0000 (08:34 +0200)
Add an help string to the config options

Change-Id: I9248a335db961aa5d776a545dcfba0ddb0f08bb2

neutron/agent/securitygroups_rpc.py
neutron/common/config.py
neutron/plugins/bigswitch/plugin.py

index ffdc21fd221afaf30ae26ccd471e8ff444922791..04d6ef50ea2397b767dd16e45ac62f10ab3de5b9 100644 (file)
@@ -28,7 +28,8 @@ SG_RPC_VERSION = "1.1"
 security_group_opts = [
     cfg.StrOpt(
         'firewall_driver',
-        default='neutron.agent.firewall.NoopFirewallDriver')
+        default='neutron.agent.firewall.NoopFirewallDriver',
+        help=_('Driver for Security Groups Firewall'))
 ]
 cfg.CONF.register_opts(security_group_opts, 'SECURITYGROUP')
 
index 3796488d762a56c3e566c04a9e5f38a067625054..6bbe080b73964ea0d52929ec7dc69996bb554a3e 100644 (file)
@@ -86,7 +86,10 @@ core_opts = [
 ]
 
 core_cli_opts = [
-    cfg.StrOpt('state_path', default='/var/lib/neutron'),
+    cfg.StrOpt('state_path',
+               default='/var/lib/neutron',
+               help=_("Where to store Neutron state files. "
+                      "This directory must be writable by the agent.")),
 ]
 
 # Register the configuration options
index 31add796ebe95b9645f787f04134f145ccf8b682..feb78650f6fdc47a7ea597cd9d2ccc2879bbbcaa 100644 (file)
@@ -136,7 +136,9 @@ for i in portbindings.VIF_TYPES:
     nova_opts.append(opt)
 
 # Add the vif types for reference later
-nova_opts.append(cfg.ListOpt('vif_types', default=portbindings.VIF_TYPES))
+nova_opts.append(cfg.ListOpt('vif_types',
+                             default=portbindings.VIF_TYPES,
+                             help=_('List of allowed vif_type values.')))
 
 cfg.CONF.register_opts(nova_opts, "NOVA")