lldp-timeout kernel parameter missing ipa- prefix

Every other Ironic python agent kernel parameter is prefixed with "ipa-".
This patch allows users to use the old "lldp-timeout" parameter or the new
"ipa-lldp-timeout" parameter. Warning message is logged if "lldp-timeout"
parameter is used.

(Also fixed typo while I'm at it.)

Change-Id: Icc05ead31506628e4926be6549916a19cad48db3
Closes-Bug: #1588325
This commit is contained in:
Yosef Hoffman
2016-06-02 10:57:31 -04:00
parent 90ba6452ef
commit 90c15e10cb
3 changed files with 15 additions and 2 deletions

@ -58,7 +58,7 @@ cli_opts = [
cfg.IntOpt('ip_lookup_sleep',
default=int(APARAMS.get('ipa-ip-lookup-timeout', 10)),
deprecated_name='ip-lookup-sleep',
help='The amaount of time to sleep between attempts'
help='The amount of time to sleep between attempts'
'to determine IP address.'),
cfg.StrOpt('network_interface',
@ -88,7 +88,8 @@ cli_opts = [
help='The Ironic driver in use for this node'),
cfg.FloatOpt('lldp_timeout',
default=APARAMS.get('lldp-timeout', 30.0),
default=APARAMS.get('ipa-lldp-timeout',
APARAMS.get('lldp-timeout', 30.0)),
help='The amount of seconds to wait for LLDP packets.'),
cfg.BoolOpt('standalone',