PL leases: take in account only the leases in the aggregate network
authorMohamed Larabi <mohamed.larabi@inria.fr>
Mon, 1 Oct 2012 07:36:47 +0000 (09:36 +0200)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Mon, 1 Oct 2012 07:36:47 +0000 (09:36 +0200)
sfa/planetlab/plslices.py

index 30e9797..0d76b59 100644 (file)
@@ -172,6 +172,9 @@ class PlSlices:
              slice_name = hrn_to_pl_slicename(lease['slice_id'])
              if slice_name != slice['name']:
                  continue
+             elif Xrn(lease['component_id']).get_authority_urn().split(':')[0] != self.driver.hrn:
+                 continue
+
              hostname = xrn_to_hostname(lease['component_id'])
              # fill the requested node with nitos ids
              requested_lease['name'] = slice['name']