git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge from improvements on the 1.0 branch:
[monitor.git]
/
nodenetwork.py
diff --git
a/nodenetwork.py
b/nodenetwork.py
index
ec8d869
..
5c1a439
100755
(executable)
--- a/
nodenetwork.py
+++ b/
nodenetwork.py
@@
-3,7
+3,7
@@
import sys
import plc
api = plc.getAuthAPI()
import sys
import plc
api = plc.getAuthAPI()
-import
config
+import
util.file
if len(sys.argv[1:]) > 0:
for host in sys.argv[1:]:
if len(sys.argv[1:]) > 0:
for host in sys.argv[1:]:
@@
-24,7
+24,7
@@
if len(sys.argv[1:]) > 0:
#print nn2['nodenetwork_id']
#api.DeleteNodeNetwork(nn2['nodenetwork_id'])
else:
#print nn2['nodenetwork_id']
#api.DeleteNodeNetwork(nn2['nodenetwork_id'])
else:
- nnids =
config
.getListFromFile('nnids.txt')
+ nnids =
util.file
.getListFromFile('nnids.txt')
nnids = [ int(i) for i in nnids]
for id in nnids:
nnet2 = api.GetNodeNetworks(id)
nnids = [ int(i) for i in nnids]
for id in nnids:
nnet2 = api.GetNodeNetworks(id)