Hello, I have nodes with 2 uplinks for redundantie
I have two bgp peers on the node peer 1 is enabled peer 2 is disabeld
Now a want a script that if bgp peer 1 go down peer 2 would be enabled
And vice versa if bgp peer go’s back online that bgp peer2 becomes disable
:if ([/routing bgp peer get [find name=“xxx”] state] != “established”) do={ .. send email here…}
In the place of email I would like to enable bgp peer2.
I want also in place of establisched that bgp peer is down
How write te script