not found

Hi all, I’ve got a rather odd problem when trying to remotely configure a VyOS host. The error occurs when using the vyatta cfg cmd wrapper to run a configuration script, specifically only when I’m trying to edit an interface. Whenever I use the set interfaces command I get an error saying cannot be found (no such file or directory), which causes the validation to fail and returns Invalid interface name.

My goal is to configure the host remotely using scripts that don’t require any input. For this I have a file containing:



$cfg begin

$cfg set interfaces ethernet eth1 description TEST

$cfg commit

$cfg save

$cfg end

I’ve configured my VyOS host to log in using SSH keys, copy the script onto the VyOS host with scp, then login using ssh, chmod the script and execute it. Effectively I have the script above, then run:

scp vyos@

ssh vyos@ 'chmod +x; ./'

Upon executing the script, it fails when trying to set an interfaces and returns the not found error. Other scripts, for example creating firewall rules, work fine but anything involving setting and interface fails. Additionally it only fails if I log in with ssh and pass the commands to execute, if I log in and manually run ./ it’ll execute without any problems.

I’ve tried looking for information on the error, but the only other thread even mentioning this error is found here. Does anyone have any suggestions on getting around this problem?