Lines Matching refs:hostname
25 def is_ip_address(hostname):
26 """Infers whether |hostname| could be an IP address.
28 @param hostname: string DNS name or IP address.
29 @return True iff hostname is a valid IP address.
33 socket.inet_aton(hostname)
44 """Build a usable hostname for a test companion device from the client name.
49 @param suffix: string suffix to append to the client hostname.
51 given, it overrides the generated client based hostname.
53 if the client hostname is found to be an IP address rather than a
74 """Build a hostname for a WiFi router from the client hostname.
76 Optionally override that hostname with the provided command line hostname.
94 """Build a hostname for a WiFi variable attenuator from the client hostname.
96 Optionally override that hostname with the provided command line hostname.
115 """Build a hostname for a Bluetooth test device from the client hostname.
117 Optionally override that hostname with the provided command line hostname.