How to generate a lab's UUID?

Moderator: mike

Post Reply
gio
Posts: 15
Joined: Wed Nov 25, 2020 4:48 pm

How to generate a lab's UUID?

Post by gio » Wed Jan 27, 2021 1:27 pm

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

Uldis (UD)
Posts: 4085
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: How to generate a lab's UUID?

Post by Uldis (UD) » Wed Jan 27, 2021 1:38 pm

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

gio
Posts: 15
Joined: Wed Nov 25, 2020 4:48 pm

Re: How to generate a lab's UUID?

Post by gio » Wed Jan 27, 2021 1:50 pm

Thanks Uldis,

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

Thanks for your support,

Gio

Uldis (UD)
Posts: 4085
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: How to generate a lab's UUID?

Post by Uldis (UD) » Wed Jan 27, 2021 3:41 pm

sorry, but 2003 is screwed lab mate...

gio
Posts: 15
Joined: Wed Nov 25, 2020 4:48 pm

Re: How to generate a lab's UUID?

Post by gio » Thu Jan 28, 2021 12:33 am

Yep, once fixed the missing closing tag everything worked like a charm.

echovid
Posts: 1
Joined: Fri Aug 06, 2021 7:19 am

Re: How to generate a lab's UUID?

Post by echovid » Fri Aug 06, 2021 9:27 am

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.

Post Reply