changes for 3.0
[monitor.git] / bwlimit.py
index 09d3167..850ad53 100755 (executable)
@@ -4,7 +4,6 @@ import os
 import sys
 import string
 import time
-import soltesz
 import plc
 
 bwlimit = {}
@@ -20,8 +19,8 @@ def main():
 
        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: