You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 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.




module dmi-registry {

    yang-version 1.1;

    namespace "org:onap:cps:sample";

    prefix dmi-reg;

    organization "Ericsson Software Tech.";

    contact "rahul.tyagi@est.tech";

    revision "2021-04-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-plugin {
                type leafref {
                    path "/dmi-registry/dmi-plugin/dmi-plugin-id";
                }
            }

            list additional-parameters {

                key "name";

                leaf name {
                    type string;
                }

                leaf value {
                    type string;
                }
            }
        }

        list dmi-plugin {

            key "dmi-plugin-id";

            leaf dmi-plugin-id {
                type string;
            }

            leaf name {
                type string;
            }

            uses target {
                refine "address" {
                    description "dmi-plugin host address";
                }
                refine "port" {
                    description "dmi-plugin port number";
                }
            }

            list dmi-plugin-data {

                key "name";

                leaf name {
                    type string;
                }

                leaf value {
                    type string;
                }
            }
        }
    }
}



  • No labels