Hi,
As alagoutte stated, there's no native solution to do to job you want on AOS-Switch.
You should set up IP SLA tests, and, with a script, check regularly if it triggers a specified value.
If so, your script change the route.
Maybe this could be part of a more global streaming telemetry strategy.
With CX, you would have been able to do that using 2 solutions :
- Network Analytics Engine, with a dedicated agent
- Notifications and websockets.
The first solution would have been very good because, as it is directly embedded into your switch, you don't need a remote solution.