Contd... (integrating sfatables)
authorSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 16 Sep 2009 13:46:07 +0000 (13:46 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 16 Sep 2009 13:46:07 +0000 (13:46 +0000)
sfa/methods/create_slice.py
sfa/methods/get_resources.py

index 5d1a09c..e9bd7b4 100644 (file)
@@ -43,7 +43,7 @@ class create_slice(Method):
         # Filter the incoming rspec using sfatables
         incoming_rules = SFATablesRules('OUTGOING')
             
-        incoming_rules.set_user_(caller_cred.callerGID.hrn) # This is a temporary kludge. Eventually, we'd like to fetch the context requested by the match/target
+        incoming_rules.set_slice(hrn) # This is a temporary kludge. Eventually, we'd like to fetch the context requested by the match/target
 
         rspec = incoming_rules.apply(requested_rspec)
 
index 10f02c4..9b52ba7 100644 (file)
@@ -59,7 +59,7 @@ class get_resources(Method):
         # Filter the outgoing rspec using sfatables
         outgoing_rules = SFATablesRules('OUTGOING')
         
-        outgoing_rules.set_user_(caller_cred.callerGID.hrn) # This is a temporary kludge. Eventually, we'd like to fetch the context requested by the match/target
+        outgoing_rules.set_user(caller_cred.callerGID.hrn) # This is a temporary kludge. Eventually, we'd like to fetch the context requested by the match/target
 
         filtered_rspec = outgoing_rules.apply(rspec)