vyos@bpi-r4# run generate pki wireguard key-pair install interface wg0 Failed to install 1 value(s). Commands to manually install: set interfaces wireguard wg0 private-key 'xxxxxx' Corresponding public-key to use on peer system is: 'xxxxxx'
That's because when installing key-pair, env vyos_validators_dir is not set.
If I change the code below to cmd(f'vyos_validators_dir=/usr/libexec/vyos/validators /opt/vyatta/sbin/my_set {path}'), it will not return error.
This command has sometimes worked normally and sometimes returned errors over the past year, I don't know the proper way to fix it.