]> git.proxmox.com Git - mirror_lxc.git/commit
netdev_move_by_index: support wlan
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 15 Oct 2014 14:20:45 +0000 (16:20 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 15 Oct 2014 21:22:41 +0000 (23:22 +0200)
commite5848d395cb4d1c09ec27457a63b56c1f1f88408
tree2655b322c8460786c11bd80500eddae71ae74d53
parente0f591898458167ac110aab5b4cabb892e673083
netdev_move_by_index: support wlan

The python lxc-device supported adding wlan devices, so add that
support as well.  Since the python one did not support 'del',
I didn't try adding that support, though it should be trivial to
add.

We should be able to do the wlan adding using netlink, but I
went ahead and used 'iw' as the netlink path looked more
complicated than it does for other nics.  Patches to switch that
over would be very welcome.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c
src/lxc/network.c