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

Julio Faracco posted 4 patches 4 years, 3 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200127142547.6677-1-jcfaracco@gmail.com
There is a newer version of this series
src/lxc/lxc_native.c                          | 183 +++++++++++-------
.../lxcconf2xml-ethernet-v3.config            |  16 +-
.../lxcconf2xml-fstab-v3.config               |  10 +-
.../lxcconf2xml-macvlannetwork-v3.config      |  10 +-
.../lxcconf2xml-simple-v3.config              |  18 +-
5 files changed, 145 insertions(+), 92 deletions(-)
[PATCH 0/4] lxc: Add suport to network indexes for LXC 3.X
Posted by Julio Faracco 4 years, 3 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

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                          | 183 +++++++++++-------
 .../lxcconf2xml-ethernet-v3.config            |  16 +-
 .../lxcconf2xml-fstab-v3.config               |  10 +-
 .../lxcconf2xml-macvlannetwork-v3.config      |  10 +-
 .../lxcconf2xml-simple-v3.config              |  18 +-
 5 files changed, 145 insertions(+), 92 deletions(-)

-- 
2.20.1