[libvirt] [PATCH 0/3] Rebase LXC network definition to support version 3.0

Julio Faracco jcfaracco at gmail.com
Fri Dec 28 19:01:35 UTC 2018


The series propose a new way to define NICs inside LXC native. It is
needed because LXC version 3.X uses indexes to define NICs and the
current algorithm is not able to support them. At least, if you consider
settings defined using a random logic.

Julio Faracco (3):
  lxc: refactoring LXC network definition with a sparse array.
  tests: Change legacy network configs to version 3.0 with indexes.
  tests: Include a random network testcase to test indexes.

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

-- 
2.19.1




More information about the libvir-list mailing list