VyOS custom config templates are broken when located on a directory.
The ansible deploy config playbook creates a file on the VyOS host called /tmp/config-{{ netsim_action }}.sh.
When a custom config template is located on a directory, say aaa/bbb.j2, the deploy playbook expect to write the file: /tmp/config-aaa/bbb.sh - which miserably fails because of the missing directory.
The VyOS deploy config should consider that, i.e. replacing / with a _.
VyOS custom config templates are broken when located on a directory.
The ansible deploy config playbook creates a file on the VyOS host called
/tmp/config-{{ netsim_action }}.sh
.When a custom config template is located on a directory, say
aaa/bbb.j2
, the deploy playbook expect to write the file:/tmp/config-aaa/bbb.sh
- which miserably fails because of the missing directory.The VyOS deploy config should consider that, i.e. replacing
/
with a_
.