To reproduce configure ipsec site-to-site tunnel with DHCP client
logs:
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.
Execute script:
vyos@r1# /etc/dhcp/dhclient-exit-hooks.d/ipsec-dhclient-hook Traceback (most recent call last): File "<stdin>", line 39, in <module> NameError: name 'secrets_lines' is not defined [edit] vyos@r1#
So secrets_lines is not defined
It could be affected to secrets if DHCP address was changed