filter out nodes that dont belong to the aggregate
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 10 Oct 2011 20:19:41 +0000 (16:19 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 10 Oct 2011 20:19:41 +0000 (16:19 -0400)
sfa/managers/slice_manager_pl.py

index f41f8de..202fa63 100644 (file)
@@ -198,7 +198,9 @@ def CreateSliver(api, xrn, creds, rspec_str, users, call_id):
             if 'sfa' not in server_version and 'geni_api' in server_version:
                 # sfa aggregtes support both sfa and pg rspecs, no need to convert
                 # if aggregate supports sfa rspecs. otherwise convert to pg rspec
-                rspec = RSpecConverter.to_pg_rspec(rspec, 'request')
+                rspec = RSpec(RSpecConverter.to_pg_rspec(rspec, 'request'))
+                filter = {'component_manager_id': hrn_to_urn(xrn, 'authority+cm')}
+                rspec.filter(filter)
                 requested_users = sfa_to_pg_users(users)
             args = [xrn, credential, rspec, requested_users]
             if _call_id_supported(api, server):