summaryrefslogtreecommitdiff
path: root/ironic_python_agent/api
diff options
context:
space:
mode:
authorDerek Higgins <derekh@redhat.com>2016-12-16 13:28:11 +0000
committerDerek Higgins <derekh@redhat.com>2017-01-19 15:24:11 +0000
commitb4e41e2dd2c6072fc2d5017ea1b9fad275e815e4 (patch)
tree3091549de77c4d8a002d021d16ddcbb2254dd3ff /ironic_python_agent/api
parent51ab461af85ab15fe321f84303a1151697b1e6eb (diff)
downloadironic-python-agent-b4e41e2dd2c6072fc2d5017ea1b9fad275e815e4.tar.gz
Agent: Listen for connections on both IPv4 and IPv6 ports
Allow connections if deploying over a IPv6 network. Change-Id: Ied2f6be4aa4d1a70524df1df3506e596f6926e5b Closes-Bug: #1650539
Diffstat (limited to 'ironic_python_agent/api')
-rw-r--r--ironic_python_agent/api/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ironic_python_agent/api/config.py b/ironic_python_agent/api/config.py
index 0b5ee634..8dc06247 100644
--- a/ironic_python_agent/api/config.py
+++ b/ironic_python_agent/api/config.py
@@ -12,11 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from ironic_python_agent import netutils
+
# Server Specific Configurations
# See https://pecan.readthedocs.org/en/latest/configuration.html#server-configuration # noqa
server = {
'port': '9999',
- 'host': '0.0.0.0'
+ 'host': netutils.get_wildcard_address()
}
# Pecan Application Configurations