#NEWLINE# @ classmethod #NEWLINE# def create_shared_network( cls , network_name = None , **post_body ) : #NEWLINE# #INDENT# network_name = ( network_name or data_utils . rand_name ( 'sharednetwork-' ) ) #NEWLINE# post_body . update ( { #NEWLINE# #INDENT# 'name' : network_name , #NEWLINE# 'shared' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# body = cls . admin_client . create_network ( ** post_body ) #NEWLINE# network = body [ 'network' ] #NEWLINE# cls . shared_networks . append ( network ) #NEWLINE# return network