

def on_get(self, req, resp, subnet_id):
    'Shows information for a specified subnet. (subnet-show)\n\n        @param req: Http Request body\n        @param resp: Http Response body\n        @param subnet_id: subnet id\n        @return: Bad request if the id is not a valid integer\n        '
    client = req.env['sl_client']
    tenant_id = req.env['auth']['tenant_id']
    try:
        subnet_id = int(subnet_id)
    except Exception:
        return error_handling.bad_request(resp, message='Malformed request body')
    subnet = client['Network_Subnet'].getObject(id=subnet_id, mask=SUBNET_MASK)
    resp.body = {
        'subnet': format_subnetwork(subnet, tenant_id),
    }
    resp.status = 200

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