From: Ondrej Lichtner <olichtne(a)redhat.com>
The following patch series adds support for hw address updates passed from slave
machines to the controller.
The updates are based on notification messages recieved from the kernel through
a netlink socket. This means that the Slave server now has an additional netlink
socket created and placed into it's select read list.
The other addition related to netlink is the function scan_netdevs which now
queries the kernel for the device list through netlink instead of reading files
in the /sys interface.
Communication through netlink is implemented with the use of pyroute2 library.
Please note that it is now a DEPENDENCY and lnst will NOT WORK without it.
For fedora users, installing the package python-pyroute2 should work.
For everyone else please consult the pyroute2 pages:
https://github.com/svinota/pyroute2
https://pypi.python.org/pypi/pyroute2
Ondrej Lichtner (5):
NetTestSlave: listen for netlink notifications
ConnectionHandler: handle NetlinkSockets
Controller: add handling of update messages
Machine: fix minor bugs
NetUtils: rewrite scan_netdevs function
lnst/Common/ConnectionHandler.py | 9 +++++-
lnst/Common/NetUtils.py | 57 ++++++++++++++++++++++++++++--------
lnst/Controller/Machine.py | 19 ++++++++----
lnst/Controller/NetTestController.py | 9 +++++-
lnst/Slave/NetTestSlave.py | 37 +++++++++++++++++++++++
5 files changed, 111 insertions(+), 20 deletions(-)
--
1.8.3.1