Versions Compared

Key

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

...

Drawio
bordertrue
diagramNamedmi-registry
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth442
revision1


Code Block
themeEmacs
titleYang Model
linenumberstrue
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;
                }
            }
        }
    }
}

...