def __init__(self, root_cert, urn_authority, url): self._url = url self._api_version = 2 self._slices = dict() self._agg = Aggregate() self._agg.add_resources([FakeVM(self._agg) for _ in range(3)]) self._cred_verifier = geni.CredentialVerifier(root_cert) self._urn_authority = urn_authority self._my_urn = publicid_to_urn("%s %s %s" % (self._urn_authority, 'authority', 'am')) self.max_lease = datetime.timedelta(days=REFAM_MAXLEASE_DAYS) self.logger = logging.getLogger('gcf.am2')
def __init__(self, root_cert): self._slivers = dict() self._resources = [Resource(x, 'Nothing') for x in range(10)] self._cred_verifier = geni.CredentialVerifier(root_cert) self.max_lease = datetime.timedelta(days=REFAM_MAXLEASE_DAYS) self.logger = logging.getLogger('gcf-am.reference')
def __init__(self): self._cred_verifier = geni.CredentialVerifier( ConfigDB.getConfigItemByKey("geni.cert-dir").getValue())