X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2app%2Fservice%2Fhandlers.py;h=9e88ff89f76ab2d097718a62fbfcc4a7840cbc2f;hb=209f349b35b0919ac133bc2264f25753a73e5b8f;hp=0665cf2a378fff1e46f5499151a732d018152bd1;hpb=02e9f39bd6232f883f022731b1a141b8a6413aba;p=pti%2Fo2.git diff --git a/o2app/service/handlers.py b/o2app/service/handlers.py index 0665cf2..9e88ff8 100644 --- a/o2app/service/handlers.py +++ b/o2app/service/handlers.py @@ -27,8 +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.event import notify_handler, 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 @@ -54,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] @@ -76,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]