mirror_lxc/src
S.Çağlar Onur a7242d9a58 fill missing netdev fields for unprivileged containers
lxc-user-nic now returns the names of the interfaces and
unpriv_assign_nic function parses that information to fill
missing netdev->veth_attr.pair and netdev->name.

With this patch get_running_config_item started to provide
correct information;

>>> import lxc; c = lxc.Container("rubik"); c.get_running_config_item("lxc.network.0.name"); c.get_running_config_item("lxc.network.0.veth.pair");
'eth0'
'veth9MT2L4'
>>>

and lxc-info started to show network stats;

lxc-info -n rubik
Name:           rubik
State:          RUNNING
PID:            23061
IP:             10.0.3.233
CPU use:        3.86 seconds
BlkIO use:      88.00 KiB
Memory use:     6.53 MiB
KMem use:       0 bytes
Link:           veth9MT2L4
 TX bytes:      3.45 KiB
 RX bytes:      8.83 KiB
 Total bytes:   12.29 KiB

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
2014-02-17 11:25:33 -05:00
..
include licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
lua-lxc Re-organize API for global lxc.conf config 2014-01-10 11:16:06 -05:00
lxc fill missing netdev fields for unprivileged containers 2014-02-17 11:25:33 -05:00
python-lxc python3: Update apitest 2014-02-13 14:14:11 -05:00
tests coverity: Don't pass uninitialized var to write 2014-02-14 19:13:51 -05:00
Makefile.am add lua binding for the lxc API 2013-01-28 18:04:08 -05:00