custom template error
Posted: Thu Sep 12, 2019 5:09 pm
Hi,I follow the guide created yml and php,but when I edd node,it print error,could anyone help me?
——————————————
type: qemu
name: vtsmart
cpulimit: 1
icon: vsmart.png
cpu:1
ram: 2048
ethernet: 7
eth_name:
eth_format:eth{0}
console: telnet
shutdown: 1
qemu_arch: x86_64
qemu_arch:2.12.0
qemu_nic: virtio-net-pci
qemu_options: -machine type=pc,accel=kvm -vga std -usbdevice tablet -boot order=dc
————————————————
<?php
/* TEMPLATE MODE .missing or .hided
*
* .hided: will hide all template not present on system ( no image installed )
* .missing: will display not selectable template not present ( no image installed )
*
*/
DEFINE('TEMPLATE_DISABLED','.missing') ;
/* Define custom templates:
*
* Create for exemple /opt/unetlab/html/templates/mytemplate.php and Create
/opt/unetlab/html/templates/othertemplate.php
* Then uncomment lines below
*/
$custom_templates = Array(
'vtsmart' => 'Cisco vSmart','vtmgmt' => 'Cisco vNMS','vtedge' => 'Cisco Edge','vtbond' => 'Cisco vBond'
);
?>
——————————————
type: qemu
name: vtsmart
cpulimit: 1
icon: vsmart.png
cpu:1
ram: 2048
ethernet: 7
eth_name:
eth_format:eth{0}
console: telnet
shutdown: 1
qemu_arch: x86_64
qemu_arch:2.12.0
qemu_nic: virtio-net-pci
qemu_options: -machine type=pc,accel=kvm -vga std -usbdevice tablet -boot order=dc
————————————————
<?php
/* TEMPLATE MODE .missing or .hided
*
* .hided: will hide all template not present on system ( no image installed )
* .missing: will display not selectable template not present ( no image installed )
*
*/
DEFINE('TEMPLATE_DISABLED','.missing') ;
/* Define custom templates:
*
* Create for exemple /opt/unetlab/html/templates/mytemplate.php and Create
/opt/unetlab/html/templates/othertemplate.php
* Then uncomment lines below
*/
$custom_templates = Array(
'vtsmart' => 'Cisco vSmart','vtmgmt' => 'Cisco vNMS','vtedge' => 'Cisco Edge','vtbond' => 'Cisco vBond'
);
?>