Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-405

Implement Plugin Registration in DMI-Plugin

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • None
    • DMI

       URI *: {ncmp-root} /ncmp-dmi/v1/ch/
      

      Register a DMI-Plugin with one or more handles.

      The DMI Plugin needs to call the method defined in NCMP for this
      https://wiki.onap.org/display/DW/CPS-390+Spike%3A+Define+and+Agree+DMI+Plugin+REST+Interface

      • This story only applies to registration

      *Method *: POST
      *URI *:

      {ncmp-root}

      /ncmp-dmi/v1/ch/
      {{ *Header *:}}
      {{ Content-Type: application/json}}
      { Request Body : {}}

      { "dmi-plugin" : "onap.dmi.plugin", } { "createdcmhandles" : [}

      {

      { "cmhandle" : "cmhandle1", .. , "cmhandle" : "cmhandle1" ] }

      }}

      }

       From DmiServiceImpl make a https call to ncmp rest interface that is being created in CPS-442
       ensure the

      • this method is called the FIRST time any cmHandle is added/discovered
      • REST communication between DMI-Plugin and NCMP can be just HTTP (not secure) as they are in the same cluster

      -{      "dmi-plugin" :

      {{

      { <service-name> }

      }}

           "cmHandles": [ <cmHandle1>, ... , <cmHandleN> ] 
      {{ }}}

      service-name should be unique, can be hardcode as per above example maybe get tfinnerty to approve this part through review)

       

       

            niamhcore niamhcore
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: