Versions Compared

Key

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

...


DescriptionNotes
Subscription Schemas 

Ref: cps-ncmp-events/src/main/resources/schemas/cmsubscription

  • DME to NCMP Subscription Request
    • cm-subscription-ncmp-in-event-schema-1.0.0.json
  • NCMP to DMI-Plugin Subscription Request
    • cm-subscription-dmi-in-event-schema-1.0.0.json
  • DMI-Plugin to NCMP Subscription Response
    • cm-subscription-dmi-out-event-schema-1.0.0.json
  • NCMP to DME Subscription Response
    • cm-subscription-ncmp-out-event-schema-1.0.0.json

See schema definitions in Impl. Proposal for Merging of Subscriptions ( Positive Scenarios )


Subscription YANG model

Ref: cps-ncmp-service/src/main/resources/models/cm-data-subscriptions@2023-11-13.yang


See Use of Subscription model

cmSubscriptionEventCachecmNotificationSubscriptionCache

Hazelcast map to hold the incoming subscription create request

  • For comparison of in-database active subscriptions
  • For tracking of subscription request to DMI (Accepted, Rejected, Pending)


KeyValue



 Unique Subscription Id


KeyValue
Dmi-Plugin NameCachedCmSubscriptionDmiCmNotificationSubscriptionDetails
Dmi-Plugin NameCachedCmSubscriptionDmiCmNotificationSubscriptionDetails
Code Block
titleCachedCmSubscription
linenumberstrue
collapsetrue
CmSubscriptionCompositeObject
    CmSubscriptionPredicate list
     - targetFilter : (List of cmHandles - Subscription request incoming cmhandles grouped using target dmiPlugin)
     - Status ( Accepted , Rejected or Pending ) - initially Pending
     - scopeFilter :
            Datastore ( passthrough-operational and passthrough-running )
            List of xpaths
Tracking Subscriptions in memory



Image Added

See Tracking Subscriptions in memory


See Mapping of Cm Subscription Event to Cache Map

NCMP Startup

Ref: CmSubscriptionModelLoader

  1. Onboarding of Subscription model
  2. Initialises parent node for the model
  3. Initialises datastores 

See Use of Subscription model

Client To NCMP

Ref: CmSubscriptionNcmpInEventConsumer

  • Read incoming subscription message


Ref: CmSubscriptionValidationService

  • Method for validating datastore type
NCMP to DMI

Ref: CmSubscriptionService

  • Method to fetch ongoing subscription in database via datastore Type, cmHandle ID, xpath

...