Creating netdev 69/35369/13
authorMateusz Malicki <m.malicki2@samsung.com>
Thu, 12 Feb 2015 15:39:58 +0000 (16:39 +0100)
committerJan Olszak <j.olszak@samsung.com>
Mon, 2 Mar 2015 15:40:26 +0000 (07:40 -0800)
commita2bfdea7f5bb1e2126701e0cf7d691f326afa9c4
tree5818d3896b3872b30ff91a15edfdaa7daa697ca4
parent633f086ac82e192354b061ffed1682f4fd1d2a1e
Creating netdev

[Feature]       Filled stubs for creating netdev (create_netdev_phys,
                create_netdev_macvlan, create_netdev_veth)
[Cause]         N/A
[Solution]      Manage netdev through netlink interface
[Verification]  Build, install, run vasum-server,
                create zone (vasum-cli create_zone zone1),
                start zone (vasum-cli start_zone zone1),
                move interface f.e. p2p1 to zone (vasum-cli create_netdev_phys zone1 p2p1)
                enter to zone (lxc-console -n zone1 --lxcpath=/usr/local/share/.zones -t 0)
                    check interfaces (ifconfig -a)
                do analogous for create_netdev_macvlan and create_netdev_veth

Change-Id: I299d3ebeb8f101a386f5b156dbe79d7779600ef6
common/lxc/zone.cpp
common/lxc/zone.hpp
common/netlink/netlink-message.cpp [new file with mode: 0644]
common/netlink/netlink-message.hpp [new file with mode: 0644]
common/netlink/netlink.cpp [new file with mode: 0644]
common/netlink/netlink.hpp [new file with mode: 0644]
server/netdev.cpp [new file with mode: 0644]
server/netdev.hpp [new file with mode: 0644]
server/zone-admin.cpp