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 recent v2 changes; migrating to v3
[monitor.git]
/
tests
/
bwlimit.py
diff --git
a/tests/bwlimit.py
b/tests/bwlimit.py
index
6b93156
..
850ad53
100755
(executable)
--- a/
tests/bwlimit.py
+++ b/
tests/bwlimit.py
@@
-19,8
+19,8
@@
def main():
for h in d_nodes:
host = d_nodes[h]
for h in d_nodes:
host = d_nodes[h]
- for nw_id in host['
nodenetwork
_ids']:
- l_nw = plc.getNodeNetworks({'
nodenetwork_id': host['nodenetwork
_ids']})
+ for nw_id in host['
interface
_ids']:
+ l_nw = plc.getNodeNetworks({'
interface_id': host['interface
_ids']})
bwlimit[h] = []
for nw in l_nw:
if nw['bwlimit'] != None and nw['bwlimit'] < 500000:
bwlimit[h] = []
for nw in l_nw:
if nw['bwlimit'] != None and nw['bwlimit'] < 500000: