X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplc%2Fnetwork.py;h=c6dad6ec7b0099bbc26d06d22be16308a317f256;hb=0523a5494058f9ffc326966bc2a44501af909d8c;hp=ffa643fb9e2519078fb30317dd9440be9e6578a9;hpb=aac9c2780747fe05a3f8cf79961e67c6a45ff988;p=sfa.git diff --git a/sfa/plc/network.py b/sfa/plc/network.py index ffa643fb..c6dad6ec 100644 --- a/sfa/plc/network.py +++ b/sfa/plc/network.py @@ -454,7 +454,7 @@ class Network: """ def get_sites(self, api): tmp = [] - for site in api.plshell.GetSites(api.plauth): + for site in api.plshell.GetSites(api.plauth, {'peer_id': None}): t = site['site_id'], Site(self, site) tmp.append(t) return dict(tmp) @@ -465,7 +465,7 @@ class Network: """ def get_nodes(self, api): tmp = [] - for node in api.plshell.GetNodes(api.plauth): + for node in api.plshell.GetNodes(api.plauth, {'peer_id': None}): t = node['node_id'], Node(self, node) tmp.append(t) return dict(tmp)