

def _get_subnet(self, context, id):
    try:
        subnet = context._get_by_id(context, models_v2.Subnet, id)
    except exc.NoResultFound:
        raise n_exc.SubnetNotFound(subnet_id=id)
    return subnet

dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_common.py DbBasePluginCommon._get_subnet/VarMisuse@20/24 `self`->`context`