neutron/neutron/tests/functional/agent/linux/bin
Rodolfo Alonso Hernandez a477c31a23 Add ip_monitor command implemented using Pyroute2
This method allows to track any IP address change in a
namespace. In future patches, this method will replace
the current IP monitor used in the keepalived_state_change
daemon. The current implementation relays in a spawned shell,
executed in root mode, and the output of this shell,
conveniently parsed.

If the passed namespace is not None, this new method must
be executed in privileged mode (root user), but cannot use
privsep because is a blocking function and can exhaust the
number of working threads.

This function should be executed in a parallel thread, returning
the data using the eventlet queue. Pyroute does not implement yet
a non blocking method to retrieve the command output or to know if
the buffer has data. This method, spawned in a greenthread, must be
stopped by killing this thread.

An example of how to use it can be found in the functional tests
implemented in this patch.

Change-Id: I86e4487035d60e1b52e951dd3cd50d6bb54f388b
Related-Bug: #1680183
2019-06-05 17:22:44 +00:00
..
__init__.py Add a functional test for iptables_manager.binary_name 2015-03-02 16:19:50 +09:00
ip_monitor.py Add ip_monitor command implemented using Pyroute2 2019-06-05 17:22:44 +00:00
ipt_binname.py Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00