def _is_link_up(statedict):
    """Evaluate current operstate, carrier and link from dict."""

    if statedict['link'] == 'yes' and statedict['carrier'] == 'running' and statedict['operstate'] == 'up':
        return True
    return False