def has_pair(ip, alias):
 hosts = _list_hosts()
 return ((ip in hosts) and (alias in hosts[ip]))

def has_pair ( ip , alias ) : hosts = _list_hosts ( ) return ( ( ip in hosts ) and ( alias in hosts [ ip ] ) )
return true if the alias is set cli example: .