+
+ if self.api.interface in ['slicemgr']:
+ return self.get_rspec_smgr(hrn)
+ elif self.api.interface in ['aggregate']:
+ return self.get_rspec_aggregate(hrn)
+
+ def get_rspec_smgr(self, hrn = None):
+ aggregates = Aggregates(self.api)
+ credential = self.api.getCredential()
+ rspecs = {}
+
+ # send the request to all known aggregates
+ for aggregate in aggregates:
+ try:
+ rspec = aggregates[aggregate].get_resources(credential, hrn)
+ tmp_rspec = Rspec()
+ tmp_rspec.parseString(rspec)
+ except:
+ print >> log, "Error calling get resources at aggregate %(aggregate)s" % locals()
+
+
+ def get_rspec_aggregate(self, hrn = None):