You can configure 
ESRP to track specified
        IPv4 routes in the route table as criteria for ESRP failover. If all of the configured
        routes are not available within the route table, the switch automatically relinquishes
        master status and remains in slave mode. You can track a maximum of eight routes per route
          table.

Note   
          ESRP route tracking is not supported for IPv6 destinations..