Add help strings to Config Options

Add an help string to the config options

Change-Id: I9248a335db961aa5d776a545dcfba0ddb0f08bb2
This commit is contained in:
Dirk Mueller 2013-07-19 18:50:26 +02:00
parent ded31acb89
commit 36818aa2df
3 changed files with 9 additions and 3 deletions

View File

@ -28,7 +28,8 @@ SG_RPC_VERSION = "1.1"
security_group_opts = [ security_group_opts = [
cfg.StrOpt( cfg.StrOpt(
'firewall_driver', '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') cfg.CONF.register_opts(security_group_opts, 'SECURITYGROUP')

View File

@ -86,7 +86,10 @@ core_opts = [
] ]
core_cli_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 # Register the configuration options

View File

@ -136,7 +136,9 @@ for i in portbindings.VIF_TYPES:
nova_opts.append(opt) nova_opts.append(opt)
# Add the vif types for reference later # 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") cfg.CONF.register_opts(nova_opts, "NOVA")