Page MenuHomeVyOS Platform

Validator return traceback on VRRP configuration with the script path not in config dir
Closed, ResolvedPublicBUG

Description

[email protected]# set high-availability vrrp group GR1 health-check script '/vrrp-check.sh'

  Traceback (most recent call last):
    File "/usr/libexec/vyos/validators/script", line 40, in <module>
      f'Warning: file {path} is outside the / config directory
'
  NameError: name 'path' is not defined
  
  
  
  Invalid value
  Value validation failed
  Set failed

The reason is that python script does not know what is {path}, need replace to {script}
https://github.com/vyos/vyos-1x/blob/equuleus/src/validators/script#L40

Details

Difficulty level
Easy (less than an hour)
Version
1.3-beta-202112060443
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)