Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Addresses: 

Jira
serverONAP JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-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.

...

draw.io Diagram
bordertrue
diagramNamedmi-registry
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth442
revision3


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
themeEmacs
titleYang Model
linenumberstrue
collapsetrue
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";
    }

  container  grouping target dmi-registry {

        leaf address {
            type string;list cm-handle {

            description "Target IP addresskey "id";
        }
        leaf portid {
            type string;
      }

      description "Target port number";leaf dmi-service-name {
        }
    }type string;
    container dmi-registry {}

        list cmadditional-handleproperties {

            key "cm-handle-idname";

            leaf cm-handle-idname {
                type string;
            }

            leaf dmi-pluginvalue {
                type leafref {string;
        }
      }
      path "/dmi-registry/dmi-plugin/dmi-plugin-id";
                }
            }

            list additional-parameters {

                key "name}
  }
}

Update October 2021

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-736

Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for each responsibility


Code Block
themeEmacs
titleOctober 2021 Updated Yang Model
linenumberstrue
collapsetrue
module dmi-registry {

  yang-version 1.1;

  namespace "org:onap:cps:ncmp";

  prefix dmi-reg;

             leaf namerevision "2021-10-20" {
    description
    "Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for   type string;
           each responsibility";
     }

                leaf value revision "2021-05-20" {
    description
                type string"Initial Version";
                }
            }
  container      }dmi-registry {

        list dmicm-pluginhandles {

            key "dmi-plugin-id";

            leaf dmi-plugin-id {
                type string;
            }

            leaf dmi-service-name {
                type string;
            }

            uses targetleaf dmi-data-service-name {
                refine "address" {
                    description "dmi-plugin host address";
          type string;
      }
                refine "port" {
                    description "dmi-plugin port number";leaf dmi-model-service-name {
                }
      type string;
      }

            list dmiadditional-plugin-dataproperties {

                key "name";

                leaf name {
                    type string;
                }

                leaf value {
                    type string;
                }
            }
        }
    }
}