Automation

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



event-option policy assistance needed

  • 1.  event-option policy assistance needed

    Posted 12-22-2020 17:41

    I am trying to understand how event-options work.

    I have the following:

    vQFX   .2 -------10.10.10.0/24   ------- .1 vMX    lo0.0 192.168.10.1

                   .2 ------- 10.10.20.0/24  ------- .1             

    root@vQFX-1# show routing-options | display set
    set routing-options static route 192.168.10.1/32 next-hop 10.10.10.1
    set routing-options static route 192.168.10.1/32 qualified-next-hop 10.10.20.1 preference 7

    root@vQFX-1# run show route protocol static

    inet.0: 7 destinations, 8 routes (7 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    192.168.10.1/32 *[Static/5] 03:03:07
    > to 10.10.10.1 via xe-0/0/0.10
    [Static/7] 03:03:07
    > to 10.10.20.1 via xe-0/0/0.20

    RPM

    root@vQFX-1# show services rpm | display set
    set services rpm probe failover test icmp-test probe-type icmp-ping
    set services rpm probe failover test icmp-test target address 10.10.10.1
    set services rpm probe failover test icmp-test test-interval 2
    set services rpm probe failover test icmp-test thresholds successive-loss 3

    event-options

    root@vQFX-1# show event-options | display set
    set event-options policy failover events route-failover
    set event-options policy failover within 30 trigger on
    set event-options policy failover within 30 trigger 2
    set event-options policy failover within 45 trigger until
    set event-options policy failover within 45 trigger 3
    set event-options policy failover attributes-match route-failover.test-owner matches failover
    set event-options policy failover attributes-match route-failover.test-name matches icmp-test
    set event-options policy failover then change-configuration commands "set routing-options static route 192.168.10.1 next-hop 10.10.10.1 preference 10"

    I expected to failover to 10.10.20.1 after a few pings fail.

    but it does not work.

    Any insights ?

    thanks in advance !!