Add numbers for dhclient-exit-hooks.d to enforce script order execution
https://github.com/vyos/vyos-1x/tree/current/src/etc/dhcp/dhclient-exit-hooks.d
vyos@r14:~$ vyos@r14:~$ ls -la /etc/dhcp/dhclient-exit-hooks.d total 31 drwxr-xr-x 1 root root 4096 Apr 3 13:31 . drwxr-xr-x 1 root root 4096 Apr 2 11:11 .. -rw-r--r-- 1 root root 4272 Jan 11 2021 01-vyos-cleanup -rw-r--r-- 1 root root 3968 Jan 11 2021 02-vyos-dhcp-renew-rfc3442 -rwxr-xr-x 1 root root 148 Jan 11 2021 99-run-user-hooks -rw-r--r-- 1 root root 623 Jan 27 23:51 chrony lrwxrwxrwx 1 root root 8 Jan 9 11:15 debug -> ../debug -rwxr-xr-x 1 root root 95 Feb 15 2019 dhcp-wanlb -rwxr-xr-x 1 root root 2673 Jan 11 2021 ipsec-dhclient-hook -rw-r--r-- 1 root root 1756 Jan 9 11:15 rfc3442-classless-routes -rwxr-xr-x 1 root root 1418 Jan 12 00:26 sendmail -rw-r--r-- 1 root root 1656 Jan 11 2021 vyatta-dhclient-hook vyos@r14:~$ vyos@r14:~$
Related task T4856 exits with code 1
Nov 28 14:07:35 r1 root[9642]: /etc/dhcp/dhclient-exit-hooks.d/ipsec-dhclient-hook returned non-zero exit status 1 Nov 28 14:07:35 r1 dhclient[1465]: bound to 10.x.x.x -- renewal in 132 seconds.
It causes loadbalancing wan issue T4362 and dhcp-wanlb is not exetuting