Merge "Log the result of command in get_nic_name_by_ip"

This commit is contained in:
Zuul 2019-01-31 13:34:33 +00:00 committed by Gerrit Code Review
commit 86bf972686
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ class RemoteClient(remote_client.RemoteClient):
def get_nic_name_by_ip(self, address):
cmd = "ip -o addr | awk '/%s/ {print $2}'" % address
nic = self.exec_command(cmd)
LOG.debug('(get_nic_name_by_ip) Command result: %s', nic)
return nic.strip().strip(":").split('@')[0].lower()
def get_dns_servers(self):