'validate the networks passed at the time of creating
the server.
Return the number of instances that can be successfully allocated
with the requested network configuration.'

def validate_networks(self, context, requested_networks, num_instances):

    if requested_networks:
        self.network_rpcapi.validate_networks(context, requested_networks)
    return num_instances
