Add the command that registers to the SMO; Make the create registration and create... 72/7472/2
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Fri, 24 Dec 2021 08:54:24 +0000 (16:54 +0800)
committerZhang Rong(Jon) <rong.zhang@windriver.com>
Mon, 27 Dec 2021 02:17:43 +0000 (10:17 +0800)
commit3da89330f3837ac6cffd2cad4c4018c9f8c3327d
tree048b782e0aafd70a5f16acc991065087fe325cad
parent02b85e27680e1139bc8e1930af5449a26527b4de
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
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