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

Julio Faracco posted 6 patches 5 years, 1 month ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20190304235404.16320-1-jcfaracco@gmail.com
There is a newer version of this series
src/lxc/lxc_native.c                          | 192 ++++++++++++------
.../lxcconf2xml-ethernet-v3.config            |  16 +-
.../lxcconf2xml-fstab-v3.config               |  10 +-
.../lxcconf2xml-macvlannetwork-v3.config      |  10 +-
.../lxcconf2xml-miscnetwork-v3.config         |  38 ++--
.../lxcconf2xml-nonenetwork-v3.config         |   2 +-
.../lxcconf2xml-physnetwork-v3.config         |  14 +-
.../lxcconf2xml-randomnetwork-v3.config       |  21 ++
.../lxcconf2xml-randomnetwork.xml             |  45 ++++
.../lxcconf2xml-simple-v3.config              |  18 +-
.../lxcconf2xmldata/lxcconf2xml-simple.config |  18 +-
.../lxcconf2xml-vlannetwork-v3.config         |  10 +-
tests/lxcconf2xmltest.c                       |   1 +
13 files changed, 268 insertions(+), 127 deletions(-)
create mode 100644 tests/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.config
create mode 100644 tests/lxcconf2xmldata/lxcconf2xml-randomnetwork.xml
[libvirt] [PATCH 0/6] lxc: Add suport to network indexes for LXC 3.X.
Posted by Julio Faracco 5 years, 1 month 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.

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 (6):
  lxc: Rebase lxcNetworkParseData struct to support indexes.
  lxc: Rebase lxcNetworkParseData pointers to use new structures.
  lxc: Introduce lxcNetworkGetParseDataLegacy() method.
  lxc: Introduce lxcNetworkGetParseData() for 'lxc.net.' entry.
  tests: Change network settings of V3 testcase set.
  tests: Introduce random network settings to test indexes.

 src/lxc/lxc_native.c                          | 192 ++++++++++++------
 .../lxcconf2xml-ethernet-v3.config            |  16 +-
 .../lxcconf2xml-fstab-v3.config               |  10 +-
 .../lxcconf2xml-macvlannetwork-v3.config      |  10 +-
 .../lxcconf2xml-miscnetwork-v3.config         |  38 ++--
 .../lxcconf2xml-nonenetwork-v3.config         |   2 +-
 .../lxcconf2xml-physnetwork-v3.config         |  14 +-
 .../lxcconf2xml-randomnetwork-v3.config       |  21 ++
 .../lxcconf2xml-randomnetwork.xml             |  45 ++++
 .../lxcconf2xml-simple-v3.config              |  18 +-
 .../lxcconf2xmldata/lxcconf2xml-simple.config |  18 +-
 .../lxcconf2xml-vlannetwork-v3.config         |  10 +-
 tests/lxcconf2xmltest.c                       |   1 +
 13 files changed, 268 insertions(+), 127 deletions(-)
 create mode 100644 tests/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.config
 create mode 100644 tests/lxcconf2xmldata/lxcconf2xml-randomnetwork.xml

-- 
2.19.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list