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

Julio Faracco jcfaracco at gmail.com
Mon Mar 4 23:53:58 UTC 2019


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




More information about the libvir-list mailing list