Page 1 of 1

Custom template interface naming is not working

Posted: Tue Sep 10, 2019 10:03 pm
by sajiby3k
Hi,

I have created a custom template below to add a new node type in eve-ng -

type: qemu
name: Clavister-cOS
cpulimit: 1
icon: Firewall.png
cpu: 1
ram: 512
ethernet: 4
eth_name:
- If1/Mgmt
eth_format: If{2}
console: telnet
qemu_arch: x86_64
qemu_nic: virtio-net-pci
qemu_options: -machine type=pc-1.0,accel=kvm -serial mon:stdio -nographic -nodefconfig
-nodefaults -display none -vga std -rtc base=utc

I will rename first interface as "If1/mgmt" which works fine. Then next interfaces will begin number from If2, If3, If4 so on.
But other interface names always starts from If0. It looks like whatever your do, the interface numbering always starts from zero (0).

Can anyone help me what I am doing wrong? Or is it a bug?

Re: Custom template interface naming is not working

Posted: Tue Sep 10, 2019 10:35 pm
by sajiby3k
I am also interested, how the developers hide their custom naming in built in yml files.

For example -

type: qemu
name: Fortinet
cpulimit: 1
icon: Firewall.png
cpu: 1
ram: 1024
ethernet: 4
console: telnet
qemu_arch: x86_64
qemu_nic: virtio-net-pci
qemu_options: -machine type=pc-1.0,accel=kvm -serial mon:stdio -nographic -nodefconfig
-nodefaults -display none -vga std -rtc base=utc

The names starts from port1, then continues like port2, port3 etc. But built-in yml template has no definitions for it.

Anyone???

Re: Custom template interface naming is not working

Posted: Wed Sep 11, 2019 5:36 am
by Uldis (UD)
I had answered it many times.
It is all described in EVE Cookbook section 17.3
https://www.eve-ng.net/images/EVE-COOK-BOOK-1.13.pdf

Starting from version 2.0.3-95 Community EVE supports same way how to make own templates as it is in the EVE Pro.

Uldis