Object tracking with static routes allows you to monitor a target with the ability to remove and then add a new route to the routing table, but in my scenario, when the target is unreachable (upstream device), I would like to stop advertising a route from this device. It should then be learned from another Layer 3 device.
Main question: Is it possible to use object tracking to just remove a route, but not inject a new one? I suppose I can always inject a useless route?
More detail is this: Layer 3 device with a static route to the Internet is redistributed south to the local LAN. This static route should be monitored and if a northbound devices becomes unreachable, it would be removed from the routing table, and thus not redistributed any more. The local LAN then would learn a new default route from somewhere else that had been previously advertised from, but has a lower metric from the one redistributed from the Layer 3 device mentioned above so it's not used when all devices are working as expected.