X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=o2ims%2Fdomain%2Focloud.py;fp=o2ims%2Fdomain%2Focloud.py;h=380d9196708a304535076a0f0eb23d8cc599113d;hb=e07ca03ee134886983e420fb974ff6c38855a0d6;hp=01ea29a1eddf53fce7b67ae083177cab1c3cbbb0;hpb=ad15ec6b732868c3ecedb9cd84450462bafa3320;p=pti%2Fo2.git diff --git a/o2ims/domain/ocloud.py b/o2ims/domain/ocloud.py index 01ea29a..380d919 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', 'sol018'] + d['profileSupportList'] = [ + DeploymentManagerProfileDefault, + DeploymentManagerProfileSOL018, + DeploymentManagerProfileSOL018HelmCLI, + ] return d