X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fauditor%2Fpserver_port_handler.py;h=1faa08aaa86cc845edaa21ff1ac6ee756d2827ec;hb=refs%2Fchanges%2F39%2F9939%2F1;hp=045b8f5b4b04f2f50684ba4d57ed42dd3b2923df;hpb=beb6be827aa4f45b8d798434a45bc15b0d7baf32;p=pti%2Fo2.git diff --git a/o2ims/service/auditor/pserver_port_handler.py b/o2ims/service/auditor/pserver_port_handler.py index 045b8f5..1faa08a 100644 --- a/o2ims/service/auditor/pserver_port_handler.py +++ b/o2ims/service/auditor/pserver_port_handler.py @@ -64,6 +64,10 @@ def update_pserver_port( alarm_dictionary = uow.alarm_dictionaries.get(dict_id) if alarm_dictionary: res_type.alarmDictionary = alarm_dictionary + res_type.events.append(events.ResourceTypeChanged( + id=res_type.resourceTypeId, + notificationEventType=NotificationEventEnum.CREATE, + updatetime=stxobj.updatetime)) uow.resource_types.add(res_type) else: resourcetype_id = first['resourceTypeId'] @@ -108,8 +112,7 @@ def create_by(stxobj: StxGenericModel, parent: Resource, resourcetype_id: str)\ description = "%s : A port resource of the interface"\ % stxobj.name resource = Resource(stxobj.id, resourcetype_id, resourcepool_id, - stxobj.name, parent_id, gAssetId, stxobj.content, - description) + parent_id, gAssetId, stxobj.content, description) resource.createtime = stxobj.createtime resource.updatetime = stxobj.updatetime resource.hash = stxobj.hash