xref: /openbmc/openbmc-test-automation/gui/lib/supporting_libs.py (revision e7e9171e96b36ae0214bb577bf7cf74b3f6a8359)
1#!/usr/bin/env python3
2
3r"""
4This is an extended user library to support Robot Selenium code.
5The class contains functions which the robot framework will use
6and import as a user-defined keyword.
7"""
8
9import socket
10
11
12class supporting_libs():
13
14    def get_hostname_from_ip_address(self, ip):
15        return socket.gethostbyaddr(ip)[0]
16