from sfa.rspecs.rspec import RSpec
from sfa.util.xrn import hrn_to_urn, urn_to_sliver_id
-from sfa.util.plxrn import slicename_to_hrn, hostname_to_hrn, hrn_to_pl_slicename
+from sfa.planetlab.plxrn import slicename_to_hrn, hostname_to_hrn, hrn_to_pl_slicename
## thierry: everything that is API-related (i.e. handling incoming requests)
# is taken care of
def GetReservedNodes(self):
# this function returns a list of all the nodes already involved in an oar job
- #jobs=self.oar.parser.SendRequest("GET_reserved_nodes")
- jobs=self.oar.parser.SendRequest("GET_jobs_details")
- nodes=[]
- if jobs['total'] == 0:
- return []
-
- for j in jobs :
- nodes=j['assigned_network_address']+nodes
- return nodes
+ return self.oar.parser.SendRequest("GET_reserved_nodes")
def GetNodes(self,node_filter_dict = None, return_fields_list = None):
"""