[Libvirt-cim] [PATCH] [TEST] Reduce the length of bridge name

Sharad Mishra snmishra at us.ibm.com
Thu Jul 28 18:36:27 UTC 2011


# HG changeset patch
# User Sharad Mishra <snmishra at us.ibm.com>
# Date 1311878184 25200
# Node ID 8c23ed99a218f1d1eea5c662b2fa3c211fe6d531
# Parent  3bc1a0fc5683d705c022014364cacf6d5860ba28
[TEST] Reduce the length of bridge name.

Lately I have seen this
(VirtualSystemManagementService - 06_addresource.py) test
fails with following error -

# virsh -c qemu:///system net-create /home/net.xml
error: Failed to create network from /home/net.xml
error: cannot create dummy tap device 'testbridge55-nic' to set mac address on bridge 'testbridge55': Invalid argument

Reducing the size of bridge name fixed this issue. I looked on
the net but could not find more  info on when this  behaviour
changed in libvirt.

Signed-off-by: Sharad Mishra <snmishra at us.ibm.com>

diff -r 3bc1a0fc5683 -r 8c23ed99a218 suites/libvirt-cim/lib/XenKvmLib/const.py
--- a/suites/libvirt-cim/lib/XenKvmLib/const.py	Tue Jul 12 16:02:27 2011 -0300
+++ b/suites/libvirt-cim/lib/XenKvmLib/const.py	Thu Jul 28 11:36:24 2011 -0700
@@ -58,7 +58,7 @@
 
 
 # vxml.NetXML
-default_bridge_name = 'testbridge'
+default_bridge_name = 'testbr'
 default_network_name = 'cimtest-networkpool'
 default_net_type = 'network'
 




More information about the Libvirt-cim mailing list