This patch set adds support for network emulation tool
NetEm (
http://www.linuxfoundation.org/collaborate/workgroups/networking/netem).
NetEm params are configured on each individual interface in XML recipe, format
of implementation is described in Wiki page NetEm.
Currently are supported these NetEm params:
* packet delay
* packet loss
* packet corruption
* packet duplication
* packet reordering
If you want to eg. test your application's behaviour in non-ideal enviroment,
you can make XML recipe with required network artefacts and run LNST with
config_only option.
Second purpose of this implementation is usage in regression testing. For more
information, please visit LNST wiki pages or send an email to this mailing list.
Jiri Prochazka (5):
Add NetEm support to schema-recipe.rng
Add NetEm XML recipe parsing support
Add Controller support for NetEm.
Add Slave methods for NetEm value parsing from interface config
Add Slave NetEm param configuration and deconfiguration support
lnst/Controller/Machine.py | 6 ++-
lnst/Controller/NetTestController.py | 3 ++
lnst/Controller/RecipeParser.py | 63 +++++++++++++++++++++++++++++
lnst/Slave/NetConfigCommon.py | 77 ++++++++++++++++++++++++++++++++++++
lnst/Slave/NetConfigDevice.py | 11 +++++-
lnst/Slave/NmConfigDevice.py | 9 ++++-
schema-recipe.rng | 46 +++++++++++++++++++++
7 files changed, 212 insertions(+), 3 deletions(-)
--
2.1.0