From d42f641f86e2a27125cfce0614e82e1e3faaec31 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Fri, 4 Nov 2016 08:56:15 +0530 Subject: [PATCH] CS-499: VR Performance Improvement add /etc/hosts entry to resolve router name to 127.0.0.1 as well --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py index 4c99f2e07dd..7ed829482a1 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py @@ -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):