Versions Compared

Key

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

...

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

  grouping target {
    leaf address {
      type string;
      description "Target IP address";
    }
  }

  container dmi-registry {

    list cm-handle {

      key "id";

      leaf id {
        type string;
      }

      leaf dmi-service-name {
        type string;
      }

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

      list additional-properties {

        key "name";

        leaf name {
          type string;
        }

        leaf value {
          type string;
        }
      }
    }

    list dmi-plugin {

      key "id";

      leaf id {
        type string;
      }

      leaf name {
        type string;
      }

      uses target;
    }
  }
}