Please consider the following example:
host---188.8.131.52--SW-184.108.40.206-ge0/0/0-MX--rest of network cloud
This is what I am trying to do:
MX uses probe to ping 220.127.116.11, if ping fails, MX should disable ge0/0/0. Similarly, once MX1 sees ping successful, MX1 should enable ge0/0/0.
One way to do is to use is event script , but I am wondering if there is any other way to do it. For example, on SRX, we can do this using ip monitoring:https://www.juniper.net/documentation/en_US/junos/topics/topic-map/ip-monitoring.html
IP Monitoring Overview
This feature monitors IP on standalone SRX Series devices or a chassis cluster redundant Ethernet (reth) interface. Existing RPM probes are sent to an IP address to check for reachability. The user takes action based on the reachability result. Supported action currently is preferred static route injection to system route table.
The actions supported are:
Enabling and disabling interfaces.
Interface-Enable-On a physical or logical interface, when the interface-enable action is configured, the initial state of the interface is disable after startup, and it continues to remain in the disable state as long as the associated RPM probe is in the pass state. When the associated RPM probe fails, the configured physical and logical interfaces are enabled.
Interface-Disable-On a physical or logical interface, when the interface-disable action is configured, the interface state remains unchanged. When the associated RPM probe fails, the physical and logical interfaces are disabled.
Thanks and have a good day!!