[libvirt] [PATCH 11/19] util: new functions virNetDev(Save|Read|Set)NetConfig()

Michal Privoznik mprivozn at redhat.com
Tue Mar 21 11:21:37 UTC 2017


On 03/17/2017 03:40 PM, Michal Privoznik wrote:
>
> As discussed on IRC, I can write the code to save/parse the JSON here.
> You've done your part. However, I'm not sure I will manage to make it
> happen today, but maybe beginning of the next week if that is okay with
> you.

And as promised, here's my code:

https://github.com/zippy2/libvirt/commit/4e0538298f91ce62153a9e11f9eb6b198f318864

Caution: I haven't tested it and frankly found it quite difficult to get 
right. The parsing that was there too big for my small brain. So perhaps 
in the parser I've exchanged adminMAC and MAC? You'll see when you test it.

Michal




More information about the libvir-list mailing list