summaryrefslogtreecommitdiff
path: root/ironic_python_agent/cmd
diff options
context:
space:
mode:
authorJim Rollenhagen <jim@jimrollenhagen.com>2014-05-07 09:28:19 -0700
committerJosh Gachnang <josh@pcsforeducation.com>2014-12-09 11:59:00 -0800
commit15aaa03833208bb8ed8a5e164c164b9e073a4769 (patch)
tree41c77add2183f83f918c429d44f2f8a822a833ee /ironic_python_agent/cmd
parentcfdedd30d369d4710ff55add09cc6fd8676ff9f7 (diff)
downloadironic-python-agent-15aaa03833208bb8ed8a5e164c164b9e073a4769.tar.gz
Use LLDP to get switch port mapping
Provides a function to listen for LLDP packets on the network. Listens on one or all of the network interfaces, and then parses the found packets. Change-Id: I1545a41f46cd0916aab9c43ce036865454fa66e0 Co-Authored-By: Josh Gachnang <josh@pcsforeducation.com>
Diffstat (limited to 'ironic_python_agent/cmd')
-rw-r--r--ironic_python_agent/cmd/agent.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ironic_python_agent/cmd/agent.py b/ironic_python_agent/cmd/agent.py
index 73e227ae..6b26ed37 100644
--- a/ironic_python_agent/cmd/agent.py
+++ b/ironic_python_agent/cmd/agent.py
@@ -191,7 +191,11 @@ cli_opts = [
cfg.StrOpt('driver_name',
default=APARAMS.get('ipa-driver-name', 'agent_ipmitool'),
deprecated_name='driver-name',
- help='The Ironic driver in use for this node')
+ help='The Ironic driver in use for this node'),
+
+ cfg.FloatOpt('lldp_timeout',
+ default=APARAMS.get('lldp-timeout', 30.0),
+ help='The amount of seconds to wait for LLDP packets.')
]
CONF.register_cli_opts(cli_opts)