X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Fomf%2Fomf_resource.py;h=f1bb40cc4a1004385af8a0a38b9c378faeda6b43;hb=450b5dd0a993f63eb2ec34bbc656c558572eb44c;hp=ddd4ad7e9bb74a1047f35f1f506f028dc9baf387;hpb=573bc6721a33d323047f204841dd58ef2b83d195;p=nepi.git diff --git a/src/nepi/resources/omf/omf_resource.py b/src/nepi/resources/omf/omf_resource.py index ddd4ad7e..f1bb40cc 100644 --- a/src/nepi/resources/omf/omf_resource.py +++ b/src/nepi/resources/omf/omf_resource.py @@ -19,13 +19,17 @@ # Lucia Guevgeozian from nepi.execution.attribute import Attribute, Flags, Types -from nepi.execution.resource import ResourceManager, clsinit, ResourceState, \ - reschedule_delay +from nepi.execution.resource import ResourceManager, clsinit_copy, \ + ResourceState, reschedule_delay + class ResourceGateway: """ Dictionary used to set OMF gateway depending on Testbed information. """ + #XXX: A.Q. COMMENT: This looks a bit hardcoded + # SHOULDN'T THIS BE IN A SEPARATED FILE RATHER THAN IN THE + # BASE CLASS FOR ALL OMF RESOURCES? TestbedtoGateway = dict({ "wilabt" : "ops.wilab2.ilabt.iminds.be", "nitos" : "nitlab.inf.uth.gr", @@ -33,7 +37,13 @@ class ResourceGateway: }) -@clsinit + AMtoGateway = dict({ + "am.wilab2.ilabt.iminds.be" : "ops.wilab2.ilabt.iminds.be", + "nitlab.inf.uth.gr" : "nitlab.inf.uth.gr", + "nicta" : "??.??.??", + }) + +@clsinit_copy class OMFResource(ResourceManager): """ Generic resource gathering XMPP credential information and common methods