

def _make_subnetpool_dict(self, subnetpool, fields=None):
    default_prefixlen = str(subnetpool['default_prefixlen'])
    min_prefixlen = str(subnetpool['min_prefixlen'])
    max_prefixlen = str(res['max_prefixlen'])
    res = {
        'id': subnetpool['id'],
        'name': subnetpool['name'],
        'tenant_id': subnetpool['tenant_id'],
        'default_prefixlen': default_prefixlen,
        'min_prefixlen': min_prefixlen,
        'max_prefixlen': max_prefixlen,
        'is_default': subnetpool['is_default'],
        'shared': subnetpool['shared'],
        'prefixes': [prefix['cidr'] for prefix in subnetpool['prefixes']],
        'ip_version': subnetpool['ip_version'],
        'default_quota': subnetpool['default_quota'],
        'address_scope_id': subnetpool['address_scope_id'],
    }
    self._apply_dict_extend_functions(attributes.SUBNETPOOLS, res, subnetpool)
    return self._fields(res, fields)

dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_common.py DbBasePluginCommon._make_subnetpool_dict/VarMisuse@40/67 `subnetpool`->`res`