def get_failover_state(value):
    """
    Create result dictionary for failover IP's value.

    The value ``None`` represents unrouted.
    """
    return dict(value=value, state='routed' if value else 'unrouted')
