def get_connected_alias(device):
    """ Get connected alias from device object

        Args:
            device ('obj')  : Device object
        Returns:
            aliases (`dict`) : dict with alias key with value
                               which contains all related info
                               for the connection
    """
    aliases = {}
    connections = device.connectionmgr.connections

    for alias in connections.keys():
        aliases.setdefault(alias, connections[alias].__dict__)
    return aliases