FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 04-11-2008, 12:22 AM
Hiroyuki Kaguchi
 
Default comparing MAC address is changed to case insensitive

MAC address is case sensitive in "countMACaddr" method.
This patch changes from case sensitive to case insensitive.

Signed-off-by: Hiroyuki Kaguchi <fj7025cf@aa.jp.fujitsu.com>


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@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org