There is nothing the switch can do in a situation like this. Here is a post in the SpiceWorks community, where a someone asked a similar question. Community members provided some really good information, and may provide you with some different possible options to look into. [URL] 
I am looking to use a single N3024F for a redundant internet connection setup. This would be in the case where I would have separate ISP both coming into the switch. If our main ISP has an outage the switch would auto failover to the secondary connection. It appears I would need BGP compatible switch to make this work. What are the N3024F capabilities for this type of scenario? (Note the single N3024F would have redundant power supply's however please let me know if you believe two N3024F's would be a better solution if the N3024F is capable of what I am trying to accomplish.)
Using a N3024F for a redundant internet connection