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:
parent
633b452e28
commit
258dc0281b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue