fix sfatables on slice create
authorAndy Bavier <acb@cadenza.cs.princeton.edu>
Fri, 24 Sep 2010 15:47:02 +0000 (11:47 -0400)
committerAndy Bavier <acb@cadenza.cs.princeton.edu>
Fri, 24 Sep 2010 15:47:02 +0000 (11:47 -0400)
sfa/methods/CreateSliver.py
sfa/util/sfatablesRuntime.py

index c21ceb4..d2654b2 100644 (file)
@@ -42,9 +42,9 @@ class CreateSliver(Method):
         
         # flter rspec through sfatables
         if self.api.interface in ['aggregate']:
-            chain_name = 'OUTGOING'
+            chain_name = 'INCOMING'
         elif self.api.interface in ['slicemgr']:
-            chain_name = 'FORWARD-OUTGOING'
+            chain_name = 'FORWARD-INCOMING'
         rspec = run_sfatables(chain_name, hrn, origin_hrn, rspec)
         allocated = manager.create_slice(self.api, slice_xrn, creds, rspec, users)
 
index 14ec6f7..170fa88 100644 (file)
@@ -7,8 +7,6 @@ def fetch_context(slice_hrn, user_hrn, contexts):
     information that sfatables is requesting. But for now, we just return
     the basic information needed in a dict.
     """
-    slice_hrn = urn_to_hrn(slice_xrn)[0]
-    user_hrn = urn_to_hrn(user_xrn)[0]
     base_context = {'sfa':{'user':{'hrn':user_hrn}, 'slice':{'hrn':slice_hrn}}}
     return base_context