summaryrefslogtreecommitdiff
path: root/tools/validateinterfaces.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-10 21:53:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-10 22:58:41 +0300
commitce0dccc72745c6ebacfd895564198b5bbffb8f34 (patch)
tree195c33b670917a0852f5445a81c190287d2b05f0 /tools/validateinterfaces.py
parent1464cdf328754949245cc825b97d65d944e49f9b (diff)
downloadhercules-ce0dccc72745c6ebacfd895564198b5bbffb8f34.tar.gz
hercules-ce0dccc72745c6ebacfd895564198b5bbffb8f34.tar.bz2
hercules-ce0dccc72745c6ebacfd895564198b5bbffb8f34.tar.xz
hercules-ce0dccc72745c6ebacfd895564198b5bbffb8f34.zip
In validateinterfaces tool fix searching lost interfaces.
Diffstat (limited to 'tools/validateinterfaces.py')
-rwxr-xr-xtools/validateinterfaces.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validateinterfaces.py b/tools/validateinterfaces.py
index b34bd6233..87ff46a85 100755
--- a/tools/validateinterfaces.py
+++ b/tools/validateinterfaces.py
@@ -177,7 +177,7 @@ def checkLostFile(tracker, cFile):
m = methodRe.search(line)
if m != None:
name = "{0}_{1}".format(m.group("ifname"), m.group("method"))
- if m.group("ifname") not in tracker.interfaces:
+ if name[:name.find("_")] not in tracker.interfaces and m.group("ifname") not in tracker.interfaces:
continue
if name not in tracker.fullmethods:
# print "src : " + line