ppp profile on-down script

Dear Community,

Under RouterOS v6 I used to use a port knocking script to connect to my L2TP server.
The remote RouterOS v6 device was the L2TP client, and each time the L2TP connection disconnected for some reason, the L2TP client ran the ppp profile on-down script (the port knocking script), and the L2TP connection reestablished successfully.
For example, if my L2TP server was not available for 1 hour, the L2TP client ran the ppp profile on-down script (the port knocking script) each time it tried to connect to the L2TP server.
To put it in another words, the L2TP client ran the ppp profile on-down script (the port knocking script) several (in my example approximately 100) times, until the L2TP connection reestablished successfully.

Under RouterOS v7 my experience is different: the L2TP client runs the ppp profile on-down script (the port knocking script) only once, only when the L2TP connection really disconnected.
Not every time, it tries to connect to the L2TP server.

Is this a bug in RouterOS v7, which one we should report to the Support Team?

# RouterOS 7.16
/ppp profile
add change-tcp-mss=yes name=profile-l2tp-out on-down=\
    script1 use-encryption=yes
/interface l2tp-client
add allow-fast-path=yes connect-to=a.b.c.d disabled=no \
    ipsec-secret=xyz name=l2tp-out1 password=xyz \
    profile=profile-l2tp-out use-ipsec=yes user=xyz
/system script
add dont-require-permissions=no name=script1 owner=admin \
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    source="/log info message=\"test\""

In RouterOS v7, the L2TP client executes the on-down script only once upon disconnection, differing from v6, where it ran every time the client attempted to reconnect. This change could be due to an alteration in the script execution logic, which aims to improve efficiency.

This change was introduced on version 7.15

http://forum.mikrotik.com/t/v7-15-3-stable-is-released/176334/1


*) ppp - fixed “on-down” script running even when tunnel was not up;