I have two Internet routers on the same AS. Each router has one eBGP peer to an ISP. The ISP's are differnet AS. One is a Primary, the other a Secondary. My two Internet routers talk to each using iBGP and OSPF. I use pre-pend AS inbound on the Secondary so as to prefer the Primary ISP. We conditionally advertise to the Secondary ISP when we lose routes from the Primary ISP.
If the Primary eBGP goes down for whatever reason and then comes up, I want to remain on the Secondary for a fixed period of time and delay the time before preferring routes from the Primary and before beginning to advertise to the Primary.
Is there a design that can achieve this?