Mon, Aug 13, 2012 at 12:01:41PM CEST, rpazdera@redhat.com wrote:
From: Radek Pazdera rpazdera@redhat.com
This patchset integrates LNST with libvirt and add support for dynamically adding arbitrary netdevices to the test machines in case they are libvirt virtual domains.
To take advantage of this, you need to have libvirt (including virsh) installed on the controller machine.
To indicate that your machine is virtualized on controller, specify 'libvirt_domain=<your_domain_name_here>' attribute to <info> tag in netmachine config.
After that you can mark your dynamic devices by enclosing them in <libvirt_create> tag.
Some other changes were added along with this patchset. Netdevices are now groupped in <netdevices> tag (it's necessary to fix this in your older recipes to use them from now on).
Each netdevice now has a required attribute called 'network'. This can be later used to determine the topology within lnst. You can chose any network name you want as long as its unique within your recipe. The semantics of this attribute is to indicate that all the devices tagged with the same network name are available on a single link segment.
Hope this patchset doesn't break anything else :). In case it does, please let me know.
v2: create tag changed to libvirt_create target_bridge changed to libvirt_bridge dev["dynamic"] changed to dev["create"] fixed copy-paste string error in NetUtils added forgotten exception raise to NetTestController
Radek
Radek Pazdera (11): NetTest: Adding 'network' attribute to netdevice Common: New module NetUtils Utils: Moved get_corespond_local_ip() to NetUtils NetConfigDevNames: Separating scan_netdevs method NetTestController: Adding new exception NetTestSlave: Adding RPC method for dev querying NetTestParse: Adding support for libvirt-integration NetConfig: Adding device rescan to add methods NetUtils: Adding AddressPool class Common: Adding VirtUtils module NetTestController: Implementing libvirt-integration
Common/NetUtils.py | 108 ++++++++++++++++++ Common/Utils.py | 20 +--- Common/VirtUtils.py | 242 ++++++++++++++++++++++++++++++++++++++++ NetConfig/NetConfig.py | 4 + NetConfig/NetConfigDevNames.py | 27 +---- NetTest/NetTestController.py | 103 +++++++++++++++++- NetTest/NetTestParse.py | 39 ++++++- NetTest/NetTestSlave.py | 11 ++ 8 files changed, 506 insertions(+), 48 deletions(-) create mode 100644 Common/NetUtils.py create mode 100644 Common/VirtUtils.py
Applied. Thanks!
-- 1.7.7.6
LNST-developers mailing list LNST-developers@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/lnst-developers