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

Julio Faracco jcfaracco at gmail.com
Wed Jan 29 01:54:07 UTC 2020

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

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

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(-)


More information about the libvir-list mailing list