Page 1 of 1

How to generate a lab's UUID?

Posted: Wed Jan 27, 2021 1:27 pm
by gio
Hi,

what kind of UUID does the UNL XML file use (v1?v4? or...?)?
I'm generating some basic topologies (5 routers) through scripts but once I launch one of them, after having imported successfully, I get the error 20003.
I reproduced a lab designed through the EVE-NG's interface, copied and modified the values in the UNL file parameters making sure they were consistent and logical.

All looks good but the only doubt I have is on the UUID.

TIA,

Gio

Re: How to generate a lab's UUID?

Posted: Wed Jan 27, 2021 1:38 pm
by Uldis (UD)
to avoid such issue, use export lab and import it again, UIDD generates automatically, no need edit or touch it.
If you will touch unl lab file problems will be unpredictable

Re: How to generate a lab's UUID?

Posted: Wed Jan 27, 2021 1:50 pm
by gio
Thanks Uldis,

I realized that 20003 means invalid XML file, I missed a closing tag.

Thanks for your support,

Gio

Re: How to generate a lab's UUID?

Posted: Wed Jan 27, 2021 3:41 pm
by Uldis (UD)
sorry, but 2003 is screwed lab mate...

Re: How to generate a lab's UUID?

Posted: Thu Jan 28, 2021 12:33 am
by gio
Yep, once fixed the missing closing tag everything worked like a charm.

Re: How to generate a lab's UUID?

Posted: Fri Aug 06, 2021 9:27 am
by echovid
The procedure to generate a version 4 UUID is as follows:
Generate 16 random bytes (=128 bits)
Adjust certain bits according to RFC 4122 section 4.4 as follows: ...
Encode the adjusted bytes as 32 hexadecimal digits.
Add four hyphen "-" characters to obtain blocks of 8, 4, 4, 4 and 12 hex digits.