#NEWLINE# def on_get( self , req , resp , tenant_id ) : #NEWLINE# #INDENT# networks = [ ] #NEWLINE# client = req . env [ 'sl_client' ] #NEWLINE# sl_networks = client [ 'Account' ] . getSubnets ( mask = 'id, modifyDate, gateway, networkVlanId, broadcastAddress, netmask, networkIdentifier, cidr, reverseDomain, note' ) #NEWLINE# networks = [ format_network ( network ) for network in sl_networks ] #NEWLINE# resp . body = { #NEWLINE# #INDENT# 'networks' : networks , #NEWLINE# #UNINDENT# }