]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix opt helpstring for dhcp_lease_duration
authorTom Fifield <tom@openstack.org>
Mon, 16 Jun 2014 09:15:42 +0000 (17:15 +0800)
committerTom Fifield <tom@openstack.org>
Mon, 16 Jun 2014 09:17:53 +0000 (17:17 +0800)
Recently (https://review.openstack.org/#/c/92453), the
functionality of dhcp_lease_duration was changed to support
infinite lease times.

However, this change failed to update the associated help text
with the option declaration. This patch simply updates the text
so that the new functionality can be understood by the user.

Change-Id: Id9dbe11599c55b447387df4a2d6639b7e8dba6ce

neutron/common/config.py

index 19a388b0df2141429b4facf3c6f083e024a734dd..1340ef2aede695086dc32f02f4fc0e95de0f6428 100644 (file)
@@ -71,7 +71,8 @@ core_opts = [
                help=_("Maximum number of fixed ips per port")),
     cfg.IntOpt('dhcp_lease_duration', default=86400,
                deprecated_name='dhcp_lease_time',
-               help=_("DHCP lease duration")),
+               help=_("DHCP lease duration (in seconds). Use -1 to tell "
+                      "dnsmasq to use infinite lease times.")),
     cfg.BoolOpt('dhcp_agent_notification', default=True,
                 help=_("Allow sending resource operation"
                        " notification to DHCP agent")),