[PATCH v3 0/4] lxc: Add suport to network indexes for LXC 3.X

Julio Faracco posted 4 patches 4 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200129015411.11701-1-jcfaracco@gmail.com
src/lxc/lxc_native.c                          | 189 ++++++++++++------
.../lxcconf2xml-ethernet-v3.config            |  16 +-
.../lxcconf2xml-fstab-v3.config               |  10 +-
.../lxcconf2xml-macvlannetwork-v3.config      |  10 +-
.../lxcconf2xml-simple-v3.config              |  18 +-
5 files changed, 151 insertions(+), 92 deletions(-)
[PATCH v3 0/4] lxc: Add suport to network indexes for LXC 3.X
Posted by Julio Faracco 4 years, 2 months ago
This series implement support for network syntax settings for LXC 3.X.
Now, indexes are part of the settings to define network interfaces. Each
interface has its own index. The old style uses 'type' tag to
differentiate each interface and with this, it could use one single
structure. Now, network interfaces are a single array with interface
pointers.

Old:
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = virbr0

New:
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = virbr0

v1-v2: Moving sscanf to virStrToLong_ull according Daniel's suggestion.
v2-v3: Adding missing g_autofree from `suffix` variable.

Julio Faracco (4):
  lxc: refactor lxcNetworkParseData pointers to use new structures
  lxc: add LXC version 3 network parser
  lxc: remove domain definition from lxc network struct
  tests: update LXC config dataset to support V3 indexes

 src/lxc/lxc_native.c                          | 189 ++++++++++++------
 .../lxcconf2xml-ethernet-v3.config            |  16 +-
 .../lxcconf2xml-fstab-v3.config               |  10 +-
 .../lxcconf2xml-macvlannetwork-v3.config      |  10 +-
 .../lxcconf2xml-simple-v3.config              |  18 +-
 5 files changed, 151 insertions(+), 92 deletions(-)

-- 
2.20.1