MAC address is case sensitive in "countMACaddr" method. This patch changes from case sensitive to case insensitive. Signed-off-by: Hiroyuki Kaguchi <fj7025cf@xxxxxxxxxxxxxxxxx> diff -r 6462dfd3e606 virtinst/Guest.py --- a/virtinst/Guest.py Tue Apr 08 15:35:49 2008 -0400 +++ b/virtinst/Guest.py Fri Apr 11 02:02:50 2008 +0900 @@ -369,10 +369,8 @@ ctx = doc.xpathNewContext() try: try: - count += ctx.xpathEval("count(/domain/devices/interface/mac[@address='%s'])" + count += ctx.xpathEval("count(/domain/devices/interface/mac[translate(@address, 'abcdef', 'ABCDEF')='%s'])" % self.macaddr.upper()) - count += ctx.xpathEval("count(/domain/devices/interface/mac[@address='%s'])" - % self.macaddr.lower()) except: continue finally: _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools