X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2app%2Fservice%2Fhandlers.py;h=9e88ff89f76ab2d097718a62fbfcc4a7840cbc2f;hb=defe8209b3628593c186487857fe02586d7e1503;hp=833ef4ea6a6f14bf4890761ae2cbe68ca3dd2e36;hpb=02b85e27680e1139bc8e1930af5449a26527b4de;p=pti%2Fo2.git diff --git a/o2app/service/handlers.py b/o2app/service/handlers.py index 833ef4e..9e88ff8 100644 --- a/o2app/service/handlers.py +++ b/o2app/service/handlers.py @@ -27,9 +27,9 @@ from o2ims.service.auditor import ocloud_handler, dms_handler, \ resourcepool_handler, pserver_handler, pserver_cpu_handler, \ pserver_mem_handler, pserver_port_handler, pserver_if_handler,\ pserver_eth_handler -from o2ims.service.command import notify_handler -from o2ims.service.event import ocloud_event, \ - resource_event, resource_pool_event +from o2ims.service.command import notify_handler, registration_handler +from o2ims.service.event import ocloud_event, resource_event, \ + resource_pool_event, configuration_event # if TYPE_CHECKING: # from . import unit_of_work @@ -55,6 +55,8 @@ EVENT_HANDLERS = { events.ResourceChanged: [resource_event.notify_resource_change], events.ResourcePoolChanged: [resource_pool_event.\ notify_resourcepool_change], + events.ConfigurationChanged: [configuration_event.\ + notify_configuration_change], } # type: Dict[Type[events.Event], Callable] @@ -77,4 +79,5 @@ COMMAND_HANDLERS = { o2dms_cmmands.DeleteNfDeployment: nfdeployment_handler.delete_nfdeployment, commands.PubMessage2SMO: notify_handler.notify_change_to_smo, + commands.Register2SMO: registration_handler.registry_to_smo, } # type: Dict[Type[commands.Command], Callable]