'Wire up subports while keeping the server trunk status apprised.'

def wire_trunk(self, context, trunk):

    if (not self._plumber.trunk_on_host(trunk)):
        LOG.debug('Trunk    %s    not    present    on    this    host', trunk.port_id)
        return
    self._tapi.bind_subports_to_host(context, trunk)
    try:
        self._plumber.ensure_trunk_subports(trunk)
        self._tapi.set_trunk_status(context, trunk, t_const.ACTIVE_STATUS)
    except Exception:
        if (not self._plumber.trunk_on_host(trunk)):
            LOG.debug('Trunk    %s    removed    during    wiring', trunk.port_id)
            return
        LOG.exception(_LE('Failure    setting    up    subports    for    %s'), trunk.port_id)
        self._tapi.set_trunk_status(context, trunk, t_const.DEGRADED_STATUS)
