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:
Murali Reddy 2016-11-04 08:56:15 +05:30
parent 5d141cb2e5
commit d42f641f86
1 changed files with 1 additions and 0 deletions

View File

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