X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Faggregate_manager_vini.py;h=e8f879c2cc9398319d6f0b1260b6549573236cbb;hb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;hp=4fb8882b2437f7f11e2649d916d832933a957713;hpb=6e52a98bb16b796b0ad3d27b2a577d825c3d05d1;p=sfa.git diff --git a/sfa/managers/aggregate_manager_vini.py b/sfa/managers/aggregate_manager_vini.py index 4fb8882b..e8f879c2 100644 --- a/sfa/managers/aggregate_manager_vini.py +++ b/sfa/managers/aggregate_manager_vini.py @@ -1,5 +1,5 @@ from sfa.util.faults import * -from sfa.util.misc import * +from sfa.util.namespace import * from sfa.util.rspec import RSpec from sfa.server.registry import Registries from sfa.plc.nodes import * @@ -13,7 +13,7 @@ SFA_VINI_WHITELIST = '/etc/sfa/vini.whitelist' Copied from create_slice_aggregate() in sfa.plc.slices """ def create_slice_vini_aggregate(api, hrn, nodes): - # Get the slice record from geni + # Get the slice record slice = {} registries = Registries(api) registry = registries[api.hrn] @@ -192,7 +192,8 @@ to refer to "contexts", which is the information that sfatables is requesting. B return the basic information needed in a dict. """ def fetch_context(slice_hrn, user_hrn, contexts): - base_context = {'sfa':{'user':{'hrn':user_hrn}}} + base_context = {'sfa':{'user':{'hrn':user_hrn}, + 'slice':{'hrn':slice_hrn}}} return base_context def main():