]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: new functions virNetDev(Save|Read|Set)NetConfig()
authorLaine Stump <laine@laine.org>
Mon, 20 Feb 2017 21:14:53 +0000 (16:14 -0500)
committerLaine Stump <laine@laine.org>
Mon, 27 Mar 2017 14:18:58 +0000 (10:18 -0400)
commit26694daf0997290e4a02fd10b1c2e24678ca8653
tree73c0178b8d4d74c2e73cb4ea1b4ace0ef63a362d
parent2af04bded67d575572b2f3d76057d9f4e37dfdce
util: new functions virNetDev(Save|Read|Set)NetConfig()

These three functions are destined to replace
virNetDev(Replace|Restore)NetConfig() and
virNetDev(Replace|Restore)MacAddress(), which both do the save and set
together as a single step. We need to separate the save, read, and set
steps because there will be situations where we need to do something
else in between (in particular, we will need to rebind a VF's driver
after save but before set).

This patch creates the new functions, but doesn't call them - that
will come in a subsequent patch. Note that the new functions to
read/write the file that stores the original network config now uses
JSON rather than plaintext (it still recognizes the old format as well
though, so it won't get confused during an upgrade).
src/libvirt_private.syms
src/util/virnetdev.c
src/util/virnetdev.h