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 26920b8712)
This commit is contained in:
YAMAMOTO Takashi 2017-05-08 13:58:48 +09:00 committed by Ihar Hrachyshka
parent 633b452e28
commit 258dc0281b
1 changed files with 1 additions and 1 deletions

View File

@ -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)