summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/find_super.py
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/scripts/adv_graphgen/find_super.py')
-rw-r--r--retiolum/scripts/adv_graphgen/find_super.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/retiolum/scripts/adv_graphgen/find_super.py b/retiolum/scripts/adv_graphgen/find_super.py
index 99548f1c..ae0fae8f 100644
--- a/retiolum/scripts/adv_graphgen/find_super.py
+++ b/retiolum/scripts/adv_graphgen/find_super.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
-def find_super(path="/etc/tinc/retiolum/hosts"):
+def find_potential_super(path="/etc/tinc/retiolum/hosts"):
import os
import re
@@ -44,10 +44,10 @@ def check_one_super(ha):
if ret: valid_addrs.append(ret)
if valid_addrs: return (host,valid_addrs)
-def check_super(path="/etc/tinc/retiolum/hosts"):
+def check_all_the_super(path="/etc/tinc/retiolum/hosts"):
from multiprocessing import Pool
p = Pool(20)
- return filter(None,p.map(check_one_super,find_super(path)))
+ return filter(None,p.map(check_one_super,find_potential_super(path)))
@@ -55,5 +55,5 @@ if __name__ == "__main__":
"""
usage
"""
- for host,addrs in check_super():
+ for host,addrs in check_all_the_super():
print host,addrs