From bc95bf33199bcaab75fc99908b0fcd35c83a9222 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Fri, 24 Sep 2010 11:47:02 -0400 Subject: [PATCH] fix sfatables on slice create --- sfa/methods/CreateSliver.py | 4 ++-- sfa/util/sfatablesRuntime.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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 -- 2.47.0