From c5b6c12ec91f70366e4d39b46261bc7a20fc426f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 8 May 2017 13:58:48 +0900 Subject: [PATCH] test_dhcp: Use a safer host name We use "foo_host" as a hostname in a test. Usually "_" is not allowed in a hostname. (See RFC 952 etc) Oslo.config (correctly) complains on that. Closes-Bug: #1689019 Change-Id: Ife817d4f9f904ab1cecb1d8501b94069d5468bdf (cherry picked from commit 26920b8712859ab3c44641ff33ca7f0ecfc45bc2) --- neutron/tests/functional/agent/linux/test_dhcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/functional/agent/linux/test_dhcp.py b/neutron/tests/functional/agent/linux/test_dhcp.py index 7876feef501..55424a7847a 100644 --- a/neutron/tests/functional/agent/linux/test_dhcp.py +++ b/neutron/tests/functional/agent/linux/test_dhcp.py @@ -38,7 +38,7 @@ class TestDhcp(functional_base.BaseSudoTestCase): conf.register_opts(common_conf.core_opts) conf.register_opts(dhcp_conf.DHCP_AGENT_OPTS) conf.set_override('interface_driver', 'openvswitch') - conf.set_override('host', 'foo_host') + conf.set_override('host', 'foo-host') self.conf = conf br_int = self.useFixture(net_helpers.OVSBridgeFixture()).bridge self.conf.set_override('ovs_integration_bridge', br_int.br_name)