You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 7
Next »
Addresses:
CPS-352
-
Getting issue details...
STATUS
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.
eyJleHRTcnZJbnRlZ1R5cGUiOiIiLCJnQ2xpZW50SWQiOiIiLCJjcmVhdG9yTmFtZSI6IlJhaHVsIFR5YWdpIiwib3V0cHV0VHlwZSI6ImJsb2NrIiwibGFzdE1vZGlmaWVyTmFtZSI6IlRvaW5lIFNpZWJlbGluayIsImxhbmd1YWdlIjoiZW4iLCJkaWFncmFtRGlzcGxheU5hbWUiOiIiLCJzRmlsZUlkIjoiIiwiYXR0SWQiOiIxMDM0MTcyNTYiLCJkaWFncmFtTmFtZSI6ImRtaS1yZWdpc3RyeSIsImFzcGVjdCI6IiIsImxpbmtzIjoiYXV0byIsImNlb05hbWUiOiJDUFMtMzUyIDogQ3JlYXRlIHlhbmctbW9kZWwgZm9yIERNSS1yZWdpc3RyeSBkYXRhIiwidGJzdHlsZSI6InRvcCIsImNhbkNvbW1lbnQiOmZhbHNlLCJkaWFncmFtVXJsIjoiIiwiY3N2RmlsZVVybCI6IiIsImJvcmRlciI6dHJ1ZSwibWF4U2NhbGUiOiIxIiwib3duaW5nUGFnZUlkIjoxMDM0MTcyNTUsImVkaXRhYmxlIjpmYWxzZSwiY2VvSWQiOjExMTEyNDU5OCwicGFnZUlkIjoiIiwibGJveCI6dHJ1ZSwic2VydmVyQ29uZmlnIjp7ImVtYWlscHJldmlldyI6IjEifSwib2RyaXZlSWQiOiIiLCJyZXZpc2lvbiI6MywibWFjcm9JZCI6ImVhN2RmMjAzLTBlNTUtNDQ3ZC05Njc5LTJjYzc1NjRmY2UwZSIsInByZXZpZXdOYW1lIjoiZG1pLXJlZ2lzdHJ5LnBuZyIsImxpY2Vuc2VTdGF0dXMiOiJPSyIsInNlcnZpY2UiOiIiLCJpc1RlbXBsYXRlIjoiIiwid2lkdGgiOiI0NDIiLCJzaW1wbGVWaWV3ZXIiOmZhbHNlLCJsYXN0TW9kaWZpZWQiOjE2MjMzMzgyODYwMDAsImV4Y2VlZFBhZ2VXaWR0aCI6ZmFsc2UsIm9DbGllbnRJZCI6IiJ9
Alternative 2 is suggested
- Simplicity
- Can be migrated to alternative 1 if needed
- Unlikely Addiotnal fields are ever required (the can be stored per cmHandle instead)
module dmi-registry {
yang-version 1.1;
namespace "org:onap:cps:ncmp";
prefix dmi-reg;
organization "Ericsson Software Tech.";
contact "rahul.tyagi@est.tech";
revision "2021-05-20" {
description
"Initial Version";
}
container dmi-registry {
list cm-handle {
key "id";
leaf id {
type string;
}
leaf dmi-service-name {
type string;
}
list additional-properties {
key "name";
leaf name {
type string;
}
leaf value {
type string;
}
}
}
}
}