tbarbette / npf

Network Performance Framework: easy-to-use experiment manager with automated testing, result collection, and graphing
GNU General Public License v3.0
38 stars 15 forks source link

Jinja support #63

Closed tbarbette closed 1 month ago

tbarbette commented 2 months ago

Allow to use jinja syntax in files.

E.g: This script would launch an amount (the variable CPU) of iperf server :

%variables
CPU=8

%file launch_iperf.sh jinja
{% for C in range($CPU) %}
iperf -s -p {{ 5000 + C}} &
{% endfor %}
wait

For now only in %file, but there's no reason not to add support for %script too

tbarbette commented 2 months ago

Poke @Simcornelis