X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Focloud.py;h=ce55aee472beb6c8ed91eb5dd3ed9d97e7bca440;hb=9ee90ffa2414326c26fd10edc59bf315204254e2;hp=996d82d0fca88bc931933a82e5e5416a8f998e87;hpb=2e17b150a5df5ecd11cf668e7cccea021a03ab7b;p=pti%2Fo2.git diff --git a/o2ims/domain/ocloud.py b/o2ims/domain/ocloud.py index 996d82d..ce55aee 100644 --- a/o2ims/domain/ocloud.py +++ b/o2ims/domain/ocloud.py @@ -23,6 +23,11 @@ from .resource_type import ResourceTypeEnum # from uuid import UUID +DeploymentManagerProfileDefault = 'default' +DeploymentManagerProfileSOL018 = 'sol018' +DeploymentManagerProfileSOL018HelmCLI = 'sol018_helmcli' + + class DeploymentManager(AgRoot, Serializer): def __init__(self, id: str, name: str, ocloudid: str, dmsendpoint: str, description: str = '', @@ -42,11 +47,16 @@ class DeploymentManager(AgRoot, Serializer): self.extensions = [] def serialize(self): + print(self.__dict__) d = Serializer.serialize(self) if 'profile' in d and d['profile'] != '': d['profile'] = json.loads(d['profile']) - d['profileSupportList'] = ['default', 'sol0018'] + d['profileSupportList'] = [ + DeploymentManagerProfileDefault, + DeploymentManagerProfileSOL018, + DeploymentManagerProfileSOL018HelmCLI, + ] return d @@ -134,7 +144,7 @@ class Ocloud(AgRoot, Serializer): self.version_number = version_number self.name = name self.description = description - self.infrastructureManagementServiceEndpoint = imsendpoint + self.serviceUri = imsendpoint self.resourcePools = [] self.deploymentManagers = [] self.resourceTypes = []