Change-Id: I335cf82f3996359327d0cacfcdc53eda8a709f86
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
self.ip_addr = args.ip or socket.gethostbyname(self.hostname)
def start_loop(self):
self.ip_addr = args.ip or socket.gethostbyname(self.hostname)
def start_loop(self):
- print "start ping to host %(h)s (ip=$(i)s)" % {'h': self.hostname,
+ print "start ping to host %(h)s (ip=%(i)s)" % {'h': self.hostname,
'i': self.ip_addr}
sock = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.IPPROTO_ICMP)
'i': self.ip_addr}
sock = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.IPPROTO_ICMP)