VRRP impossible to set scripts out of the /config directory
[email protected]# set high-availability vrrp group FOO transition-script backup '/usr/bin/true' Warning: file /usr/bin/true is outside the "/config" directory It will not be automatically migrated to a new image on system update Invalid value Value validation failed Set failed [edit] [email protected]#
[email protected]:/home/vyos# /usr/libexec/vyos/validators/script /usr/bin/true Warning: file /usr/bin/true is outside the "/config" directory It will not be automatically migrated to a new image on system update [email protected]:/home/vyos# [email protected]:/home/vyos# echo $? 1 [email protected]:/home/vyos#
It should be just a warning message with exit-code 0
As if was in 1.2
[email protected]# sudo whereis true true: /bin/true /usr/share/man/man1/true.1.gz [edit] [email protected]# set high-availability vrrp group FOO transition-script master '/bin/true' Warning: file /bin/true is outside the /config directory It will not be automatically migrated to a new image on system update [edit] [email protected]# compare +high-availability { + vrrp { + group FOO { + interface eth1 + transition-script { + master /bin/true + } + virtual-address 192.0.2.45/24 + vrid 120 + } + } +} [edit] [email protected]#
And after rewriting it was changed https://github.com/vyos/vyos-1x/commit/3639a5610b590a64d6d56bee81dddd252994cfe5#diff-87ee33ff4bebeec3921219895213b6db1fb2a732c9aaa4715f5484c21007bfc8L46