From: Rajesh Date: Tue, 20 Sep 2016 02:37:07 +0000 (-0400) Subject: Bug 45 - launchpad doesn't come up when there is no network interface named eth0 X-Git-Tag: v1.0.0~20 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d6cdb38db2d0dbf86a0a16cf36ed4689b21bd7c9;p=osm%2FSO.git Bug 45 - launchpad doesn't come up when there is no network interface named eth0 Signed-off-by: Rajesh --- diff --git a/rwlaunchpad/test/launchpad.py b/rwlaunchpad/test/launchpad.py index 53e4d361..324b94b6 100755 --- a/rwlaunchpad/test/launchpad.py +++ b/rwlaunchpad/test/launchpad.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# +# # Copyright 2016 RIFT.IO Inc # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -520,10 +520,8 @@ def main(argv=sys.argv[1:]): netconf_trace_override=True) confd_ip = socket.gethostbyname(socket.gethostname()) - intf = netifaces.ifaddresses('eth0') - if intf and netifaces.AF_INET in intf and len(intf[netifaces.AF_INET]): - confd_ip = intf[netifaces.AF_INET][0]['addr'] - rift.vcs.logger.configure_sink(config_file=None, confd_ip=confd_ip) + # TODO: This need to be changed when launchpad starts running on multiple VMs + rift.vcs.logger.configure_sink(config_file=None, confd_ip="127.0.0.1") # Start the prepared system system.start()