'Destroy OVS ports associated to the logical subports.'

def unwire_subports_for_trunk(self, trunk_id, subport_ids):

    ids = []
    for subport_id in subport_ids:
        try:
            self.trunk_manager.remove_sub_port(trunk_id, subport_id)
            ids.append(subport_id)
        except tman.TrunkManagerError as te:
            LOG.error(_LE('Removing    subport    %(subport_id)s    from    trunk    %(trunk_id)s    failed:    %(err)s'), {'subport_id': subport_id, 'trunk_id': trunk_id, 'err': te})
    try:
        bridge = None
        port = None
        self._update_trunk_metadata(bridge, port, trunk_id, subport_ids, wire=False)
    except RuntimeError as e:
        LOG.error(_LE('Failed    to    store    metadata    for    trunk    %(trunk_id)s:    %(reason)s'), {'trunk_id': trunk_id, 'reason': e})
        return constants.DEGRADED_STATUS
    except exceptions.ParentPortNotFound as e:
        LOG.debug(e)
    return self._get_current_status(subport_ids, ids)
