Automation

  • 1.  event-policy question

    Posted 13 days ago
    set event-options policy bgp_up events rpd_bgp_neighbor_state_changed
    set event-options policy bgp_up attributes-match rpd_bgp_neighbor_state_changed.old-state matches Established
    set event-options policy bgp_up attributes-match rpd_bgp_neighbor_state_changed.peer-name matches 10.1.1.1
    set event-options policy bgp_up then change-configuration commands "activate protocols bgp group ToISP2"

    If I removed the red lines, another bgp group ToISP2 is activated. but not work with the red lines.

    The log has the following:
    Apr 7 07:32:34 Branch1 rpd[2310]: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer 10.1.1.1 (External AS 1111) changed state from Established to Idle (event HoldTime) (instance master)

    thanks a lot !!