So I have been working with:
But the return type from the call is void, so I have no way of knowing if this has worked or not. Is there a subsequent IControl call I can use (or use the data from) to work out if the cache has been cleared?
So I have been working with:
But the return type from the call is void, so I have no way of knowing if this has worked or not. Is there a subsequent IControl call I can use (or use the data from) to work out if the cache has been cleared?
Pretty poor isn’t it. This very issue informed point 3 in this API related blog I wrote: http://packetpushers.net/attributes-great-network-device-api/.
A call to
get_statistics
seems to be your only option but involves you having to compare those to the same, prior to cache clearance. Not ideal.
That, or you simply trust that if you didn’t get an error, it worked.
Just in case anyone else is wondering about this all of the cache info accessible from the API I found, cannot be used to completely confirm that a cache has been cleared. (mainly because the cache will still be in use) So I went with the simply trust it worked if it didn’t error option as opposed to adding a race condition to the confirmation message (I take it this is why there is no response from the call)