Can I change uuid for network interface in ifcfg-eth* using uuidgen?
1,145
Yes, this article shows how. Keep NetworkManager in line, in case you use it.
Related videos on Youtube
Author by
Lawrence
Updated on September 18, 2022Comments
-
Lawrence over 1 year
i'm relativity new to delphi and trying to write a complex search algorithm for my a2 computing coursework. i need to access my record field from a string variable. e.g.
getfield(record,'name');
I have found an article that may solve my problem but i cant make sense of it. please can someone shorten it down to just what i need. Thanks.
http://theroadtodelphi.wordpress.com/2010/10/10/fun-with-delphi-rtti-dump-a-trttitype-definition/
-
David Heffernan over 11 yearsWhy don't you try first, and ask a question if you get stuck.
-
Lawrence over 11 yearsI have iv'e been trying for days now and i cant make sense of it im really just diving in the deep end here and i need a solution.
-
kludg over 11 yearsSince the record field is
yours
you probably need not RTTI to access it at all. RTTI is required to get information about the types unknown at compile time. -
LU RD over 11 yearsIf you study my answer here, I'm sure you can figure it out:
Convert Record to Serialized Form Data for sending via HTTP
. -
Arioch 'The over 11 years
-
Rabin almost 10 yearspersonally i don't see why not, i usually clone the
ifcfg-*
file and do the same. -
LUIS FRANCO almost 10 yearsThanks @Rabin. Is it necessary to generate the UUID based on the mac address or it doesn't matter?
-
-
LU RD over 11 years@Serg, the field name could be unknown at compile time.
-
Pateman about 11 yearsI'm glad I was able to help. You can easily expand this to support more complex record fields. :) Just have a look at the reference I've used here and you should be able to figure it out in a flash.
-
Stack Overflow over 6 yearsThe article is correct that
uuidgen
will generate a new UUID that can be included in theifcfg-x
file. However, including the device name withuuidgen
doesn't do anything at all. To answer the OP's question, yes, you can use any UUID value (generated byuuidgen
or otherwise).