iblrig.net.check_uri_match
- async iblrig.net.check_uri_match(com, update=None)[source]
Log warning if URI in remote devices is wrong.
NB: Currently does not check if the protocol matches, and does not resolve hostnames.
- Parameters:
com (
iblutil.io.net.app.EchoProtocol
) – A Communicator instance to compare to the devices file.update (
bool
,None
) – If True, update the remote devices YAML file. If False, do not update the remote devices YAML file. If None, only updates if the file exists.
- Returns:
iblutil.io.net.app.EchoProtocol
– The same Communicator instance.bool
– True if the URI matches the one in the file, False otherwise. When update is True, True should always be returned.
- Raises:
FileNotFoundError – Raised when update is True but the remote devices YAML file does not exist on disk.
- Parameters:
com (EchoProtocol)
- Return type:
(<class ‘iblutil.io.net.app.EchoProtocol’>, <class ‘bool’>)