Page 1 of 1

Assigning "variable" router name to template

Posted: Mon Dec 14, 2020 5:10 am
by kbmelati
Dear Eve-NG developer ?

Is it possible to add a variable to template ?

for example, in "/opt/unetlab/html/templates/intel/timos.yml" we have something like :
->
management_address: 1.1.1.1/24
->

can we add some variable to template ? so for example we create node and got assigned node number #4, then we assign "management_address: 1.1.1.4/24".

Or maybe we can extract node name ?
->
name: 7750SR
->

Another example :
when user give name to the node as "Router1", then license file will be "Router1.license".

Thanks.

Re: Assigning "variable" router name to template

Posted: Mon Dec 14, 2020 7:14 pm
by Uldis (UD)
create bew template
read eve cookbook