Add the command that registers to the SMO; Make the create registration and create... 29/7529/1
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Fri, 24 Dec 2021 08:54:24 +0000 (16:54 +0800)
committerBin Yang <bin.yang@windriver.com>
Tue, 11 Jan 2022 04:54:39 +0000 (04:54 +0000)
commit730b4043e3512893704b4ec66492812dd3f0adc1
tree048b782e0aafd70a5f16acc991065087fe325cad
parentf2998d71e3fe6c455d5ea5070866d927e59a65c9
Add the command that registers to the SMO; Make the create registration and create ocloud event link to the register command

1. Add a command that registers to the SMO, it can base on a
   parameter to make a choice that it calls all SMO in the
   confiration or not
2. Create a registration event that can trigger the
   register action
3. Update the ocloud changed event that can trigger the
   register action
4. Redesign the Registration domain that updates column key
   to clarify the different status, includeing created,
   notified, and failed

Issue-ID: INF-249
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ia734688b47c5125a3a1e1158d544f218ab741576
(cherry picked from commit 3da89330f3837ac6cffd2cad4c4018c9f8c3327d)
17 files changed:
docker-compose.yml
mock_smo/mock_smo/entrypoints/mock_smo.py
o2app/adapter/unit_of_work.py
o2app/entrypoints/redis_eventconsumer.py
o2app/service/handlers.py
o2common/domain/base.py
o2common/domain/events.py
o2ims/adapter/orm.py
o2ims/domain/commands.py
o2ims/domain/events.py
o2ims/domain/subscription_obj.py
o2ims/service/auditor/ocloud_handler.py
o2ims/service/command/notify_handler.py
o2ims/service/command/registration_handler.py [new file with mode: 0644]
o2ims/service/event/registration_event.py [new file with mode: 0644]
o2ims/views/ocloud_route.py
o2ims/views/ocloud_view.py