def list_neighbors(cfg):
    """List neighbors from config.

    Args:
        cfg (dict): config from config_load.

    Returns:
        list: list of string with neighbor names.

    Examples:
        >>> list_neighbors(cfg)
        ['192.168.0.2', '192.168.0.1']
    """
    return [neighbor["name"] for neighbor in cfg["neighbors"]]