summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/tinc_stats/Services.py
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2015-09-09 14:41:38 +0200
committermakefu <root@pigstarter.de>2015-09-09 14:41:38 +0200
commit05bf2c8be209e619f8c9e727fd1353198b042642 (patch)
tree4f7a9439137fe78f979b235666a3533f9e249eca /retiolum/scripts/adv_graphgen/tinc_stats/Services.py
parente9e7d6baf986488c43d418887f6cf95f5d896189 (diff)
begin packaging of tinc_stats
Diffstat (limited to 'retiolum/scripts/adv_graphgen/tinc_stats/Services.py')
-rw-r--r--retiolum/scripts/adv_graphgen/tinc_stats/Services.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Services.py b/retiolum/scripts/adv_graphgen/tinc_stats/Services.py
deleted file mode 100644
index 6752e116..00000000
--- a/retiolum/scripts/adv_graphgen/tinc_stats/Services.py
+++ /dev/null
@@ -1,17 +0,0 @@
-services_dir="/home/makefu/r/services"
-def add_services(nodes):
- for k,v in nodes.items():
- n = nodes[k]
- try:
- with open("{0}/{1}".format(services_dir,k)) as f:
- n["services"] = []
- for line in f.readlines():
- n["services"].append(line.strip())
- except Exception as e:
- n["services"] = ["Error: No Service File!"]
- return nodes
-if __name__ == "__main__":
- import json,sys
- nodes = add_services(json.load(sys.stdin))
- print (json.dumps(nodes,indent=4))
-# vim: set expandtab:ts=4:sw=4