Overview
CPS stores the yang model of the mounted devices in CPS-Core database. It is handled by CPS-DMI Plugin which fetches the yang models of the devices registered at AAI and stores in CPS.
As the VNF/PNF registry in AAI is not supported for Slicing use case, the mounted nodes will be directly published to the CPS-DMI Plugin by SDN-C.
A new karaf feature is needed to communicate the node-id to CPS-DMI plugin. This will be achieved by registering a cm-handle with DMI-Plugin.
RPC Details
RPC Name: addCMHandle
Functionality:
- This RPC makes use of the onDataTreeChanged event from DataTreeChangeListener to detect, if any node is added to network-topology https://localhost:8086/restconf/config/network-topology:network-topology
If the ModificationType is 'WRITE', a new notification is published to dmaap to add the cmhandle.
- If the ModificationType is 'DELETE', the notification to remove the cmhandle will be published. - TBC with CPS Team
cmhandle format:
Reference: CPS-352 : Create yang-model for DMI-registry data
where,
cm-handle-id is node id
dmi-service-name is Kubernetes service name of the DMI Plugin
RPC Yang: CMHandle-API.yang
yang tree: