aflex script requirement to evaluate host status
I am working on load balancing radius auth/acct to two MS NPS servers. The load balancing works and with radius there is a need to persist a radius client with the server that it happens to communicate with. The starting point for that is an aflex script found at https://a10support.force.com/customers/articles/KB/Radius-AVP-persistence-with-aFleX/p . The persistence works well, but the problem occurs if the radius server it happens to be talking to goes down. I am new to aflex and would like to find a means of evaluating host status in the aflex script and clear the persistence for that/all session(s) if there is a host change.
Would this be possible? I've only started looking for the resources, so any pointers appreciated.
are there any libraries that might be available to easily do this?