CPS-352 : Create yang-model for DMI-registry data
Addresses: https://lf-onap.atlassian.net/browse/CPS-352
PLease note further update on CPS-872 CM Handle State: define and agree new dmi-registry yang model supporting States
Problem description
Yang model need to be created in CPS to persist relationship between DMI-plugin and CM-handle. Also, DMI-plugin connection data and additional parameters needed to be persisted.
Under this ticket, we need to create yang-model for above statements and persist that into cps repository.
Proposal
Please find below yang-model for above problem, also a new dataspace will be added named dmi-registry. Using liquibase db changes will be done.
Alternative 2 is suggested
Simplicity
Can be migrated to alternative 1 if needed
Unlikely Additional fields are ever required (the can be stored per cmHandle instead)
Update October 2021
https://lf-onap.atlassian.net/browse/CPS-736
Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for each responsibility
unfortunately still cannot make inline comments inside code block, so I enabled line numbers:
#5 need definite name, not 'sample'
#19 the target assume it is an ip address. I thought we have mount points instead? In any case can we make it more generic : an single address string that can contain an ip-address with port or anything else
#71 not sure if 'refinement' of target is need, it is oly used once, might as well declare and describe it as a dmi-plugin-target in the grouping definition on line #18
#79 no need for dmi-plugin data, Lets not code for the future...