#NEWLINE# @ wrap_check_policy #NEWLINE# def validate_networks( self , context , requested_networks , num_instances ) : #NEWLINE# #INDENT# 'validate the networks passed at the time of creating\n        the server.\n\n        Return the number of instances that can be successfully allocated\n        with the requested network configuration.\n        ' #NEWLINE# if requested_networks : #NEWLINE# #INDENT# self . network_rpcapi . validate_networks ( context , requested_networks ) #NEWLINE# #UNINDENT# return num_instances