Code: Select all
/routing bgp peer {
:foreach peer in [find state="opensent"] do={
:log warning "Restart stuck BGP Peer: $([get $peer name])"
disable $peer
enable $peer
}
}
/routing bgp peer {
:foreach peer in [find state="opensent"] do={
:log warning "Restart stuck BGP Peer: $([get $peer name])"
disable $peer
enable $peer
}
}