

def _get_port(self, context, id):
    try:
        port = self._get_by_id(context, models_v2.Port, id)
    except exc.NoResultFound:
        raise n_exc.PortNotFound(port_id=id)
    return port

dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_common.py DbBasePluginCommon._get_port/original