mirror of https://github.com/apache/cloudstack.git
CS-499: VR Performance Improvement
add /etc/hosts entry to resolve router name to 127.0.0.1 as well
This commit is contained in:
parent
5d141cb2e5
commit
d42f641f86
|
|
@ -130,6 +130,7 @@ class CsDhcp(CsDataBag):
|
|||
if self.config.is_vpc():
|
||||
self.add_host("127.0.0.1", CsHelper.get_hostname())
|
||||
if self.config.is_router():
|
||||
self.add_host("127.0.0.1", "localhost %s" % CsHelper.get_hostname())
|
||||
self.add_host(self.config.address().get_guest_ip(), "%s data-server" % CsHelper.get_hostname())
|
||||
|
||||
def write_hosts(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue