ipspace / netlab

Making virtual networking labs suck less
https://netlab.tools
Other
403 stars 56 forks source link

[BUG] VyOS custom config templates are broken when located on a directory #1206

Closed ssasso closed 1 month ago

ssasso commented 1 month ago

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 _.

ssasso commented 1 month ago

(note: the same happens with netlab initial -o - but that's a general issue, not only for vyos - will create a dedicated task)