From: Andy Bavier Date: Fri, 24 Sep 2010 15:47:02 +0000 (-0400) Subject: fix sfatables on slice create X-Git-Tag: sfa-1.0-2~21 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bc95bf33199bcaab75fc99908b0fcd35c83a9222;p=sfa.git fix sfatables on slice create --- diff --git a/sfa/methods/CreateSliver.py b/sfa/methods/CreateSliver.py index c21ceb4f..d2654b2c 100644 --- a/sfa/methods/CreateSliver.py +++ b/sfa/methods/CreateSliver.py @@ -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) diff --git a/sfa/util/sfatablesRuntime.py b/sfa/util/sfatablesRuntime.py index 14ec6f74..170fa880 100644 --- a/sfa/util/sfatablesRuntime.py +++ b/sfa/util/sfatablesRuntime.py @@ -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