Good point, I will add -p -o to rewrite the fix... Thanks, Henry
Laszlo (Laca) Peter ??: > Replying to myself. From man dladm: > > -p, --parseable > > Display using a stable machine-parseable format. > > Looks like you even considered using it, but it's commented out > in the patch. > > You can also specify the fields you would like dladm to return: > > $ pfexec dladm show-link -p -o LINK > LINK="e1000g0" > LINK="iwk0" > > Laca > > On Thu, 2008-08-28 at 19:40 +1200, Laszlo (Laca) Peter wrote: >> On Thu, 2008-08-28 at 15:39 +0800, Henry Zhang wrote: >>> Network team changed the dladm output mode, and virt-manager is using >>> the output to get network card name and mac address, so we have to >>> changed accordingly. >> Is there any commitment for the stability of the output of dladm? >> It's probably not a good idea to parse output intended for humans. >> Is there a better interface you can use or can you ask the Network >> team to add an option for machine-readable output? >> >> Laca >> >> >
