Addresses:
Jira Legacy |
---|
server | System Jira |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | 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.
...
Drawio |
---|
border | true |
---|
| |
---|
diagramName | dmi-registry |
---|
simpleViewer | false |
---|
width | |
---|
links | auto |
---|
tbstyle | top |
---|
lbox | true |
---|
diagramWidth | 442 |
---|
revision | 3 |
---|
|
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)
Code Block |
---|
theme | Emacs |
---|
title | Yang Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
module dmi-registry {
yang-version 1.1;
namespace "org:onap:cps:samplencmp";
prefix dmi-reg;
organization "Ericsson Software Tech.";
contact "rahul.tyagi@est.tech";
revision "2021-0405-20" {
description
"Initial Version";
}
grouping target {
leaf address {
type string;
description "Target IP address";
}
leaf port {
type string;
description "Target port number";
}
}
container dmi-registry {
list cm-handle {
key "cm-handle-id";
leaf cm-handle-id {
type string;
}
leaf dmi-pluginservice-name {
type leafref {
path "/dmi-registry/dmi-plugin/dmi-plugin-id";
}
string;
}
list additional-parametersproperties {
key "name";
leaf name {
type string;
}
leaf value {
type string;
}
}
}
}
}
|
Update October 2021
Jira Legacy |
---|
server | System Jira |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | CPS-736 |
---|
|
Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for each responsibility
Code Block |
---|
theme | Emacs |
---|
title | October 2021 Updated Yang Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
module dmi-registry {
}yang-version 1.1;
namespace "org:onap:cps:ncmp";
prefix list dmi-plugin {reg;
key "dmi-plugin-id";
revision "2021-10-20" {
description
"Added dmi-data-service-name & leaf dmi-pluginmodel-service-idname {to allow separate DMI instances for each responsibility";
}
revision type string;"2021-05-20" {
description
"Initial Version";
}
container dmi-registry {
leaf namelist cm-handles {
type stringkey "id";
leaf }
uses target id {
type string;
refine}
"address" {
description "dmi-plugin host address";leaf dmi-service-name {
type string;
}
leaf dmi-data-service-name {
refine "port" { type string;
}
descriptionleaf "dmi-model-pluginservice-name port{
number"; }
type string;
}
list dmiadditional-plugin-dataproperties {
key "name";
leaf name {
type string;
}
leaf value {
type string;
}
}
}
}
}
|