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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux