#NEWLINE# def get_requested_networks( self , slice ) : #NEWLINE# #INDENT# network_ids = [ x . network_id for x in slice . networks . all ( ) ] #NEWLINE# if ( slice . network_id is not None ) : #NEWLINE# #INDENT# network_ids . append ( slice . network_id ) #NEWLINE# #UNINDENT# networks = [ ] #NEWLINE# for network_id in network_ids : #NEWLINE# #INDENT# networks . append ( { #NEWLINE# #INDENT# 'net-id' : network_id , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return networks