You might consider looking into iproute ping protection, a feature introduced in 16.2. The description is in the 16.2.2
release notes.
Here are the commands.
configure iproute add [default | ipv4_or_ipv6_network ] gateway
{protection [bfd | ping |none ]}
configure iproute {ipv4 | ipv6 } protection ping interval seconds miss
misses
enable iproute {ipv4 | ipv6 } protection ping
disable iproute {ipv4 | ipv6 } protection ping
show iproute {ipv4 | ipv6 } protection ping {v4_or_v6_gateway } {vr vr_name }
{detail }