

def on_get(self, req, resp):
    'Handles subnet-list/subnet-show.\n\n        @param req: Http Request body\n        @param resp: Http Response body\n        '
    client = req.env['sl_client']
    tenant_id = req.env['auth']['tenant_id']
    _filter = {
        'subnets': {
            
        },
    }
    if req.get_param('name'):
        _filter['subnets']['id'] = {
            'operation': req.get_param('name'),
        }
    subnets = client['Account'].getSubnets(mask=SUBNET_MASK, filter=_filter)
    resp.body = {
        'subnets': [format_subnetwork(subnet, tenant_id) for subnet in sorted(subnets, key=operator.itemgetter('id'))],
    }
    resp.status = 200

dataset/ETHPy150Open softlayer/jumpgate/jumpgate/network/drivers/sl/subnets.py SubnetsV2.on_get/original