nodenetworks are now known as interfaces
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 10 Mar 2010 15:49:14 +0000 (15:49 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 10 Mar 2010 15:49:14 +0000 (15:49 +0000)
plugins/drl.py

index 13b8779..cfdaae5 100644 (file)
@@ -81,7 +81,7 @@ def GetSlivers(data, conf = None, plc = None):
                q = plc.GetSites({'site_id': site_id, 'enabled': True, 'peer_site_id': None}, ['name', 'node_ids'])
                for i in q:
                        if i['node_ids'] != [] and len(i['node_ids']) > 1:
-                               z = plc.GetNodeNetworks({'node_id': i['node_ids'], 'is_primary': True, '~bwlimit': None}, ['node_id', 'ip', 'bwlimit'])
+                               z = plc.GetInterfaces({'node_id': i['node_ids'], 'is_primary': True, '~bwlimit': None}, ['node_id', 'ip', 'bwlimit'])
                                total_bwlimit = 0
                                peer = ''
                                node_has_bwlimit = 0