/
CPS-2425 Event Schemas in ONAP

CPS-2425 Event Schemas in ONAP

References

CPS-2425: Update Event Schemas Format to the Events that NCMP manages.In Progress

CPS Data Notifications Overview

Issues & Decisions

Issue

Notes

Decisions

Issue

Notes

Decisions

1

Schema prefix

 

All schemas should have urn:cps column be a prefix @Csaba Kocsis @Kolawole Adebisi-Adeolokun

2

We will just change the data schema field in the event header when we publish the event and we would still maintain the internal java type as is. Although we discussed during the meeting that it has no affect at your end but just to record the decision I am putting it here.

@Csaba Kocsis or @kieran mccarthy to provide more insights.

No issue

3

When we start populating a different data schema , will that seamlessly integrate with the code at your end ? Or we still have to coordinate this change ?

@Csaba Kocsis or @kieran mccarthy to provide more insights.

SDK Impacts at Ericsson. @Csaba Kocsis
NCMP Documentation to say listen on both the event schemas ( as the schema doesn't change ) @Priyank Maheshwari

Coordination Needed Nov 13, 2024

4

Talked about the non backward compatible changes from an end to end lifecycle of the event.

 

Agreed with @Csaba Kocsis and recorded the decisions in the below table ( Compatibility column ) Feb 20, 2025

Agreed Event Schema Names

Event

Notes

Decisions

Compatibility

Event

Notes

Decisions

Compatibility

1

Async Event DataOperation Event

NCMP Produces DataOperationEvent

Nov 13, 2024
urn:cps:org.onap.cps.ncmp.events.batch-response:1.0.0
NCMP to document changes related to old and new schema as content of the schema doesn't change.

No , Wont do
( used in the error cases )

2

Cm Notification Subscriptions

NCMP Produces and Consumes the events

Nov 13, 2024
urn:cps:org.onap.ncmp.events.subscription:1.0.0

Not used. Hence safe to change.

3

Dmi Data Avc Event

Events NCMP receives from DMI

Nov 13, 2024
urn:cps:org.onap.cps.ncmp.events.moi-changes:1.0.0
Note: MOI is Managed Object Instance or MO Instance.

No. This is coming from devices.

Note for subscription with different topics we can change it. ( new epic )

4

LCM ( Lifecycle Management Events)

NCMP Produces LCM Events

Nov 13, 2024
urn:cps:org.onap.cps.ncmp.events:cm-handle-lcm:1.0.0
Note : to be done only when this is compliant with Cloud Events.

 

5

NCMP Data Avc Event (northbound)

NCMP Produces AvcEvent

Nov 13, 2024
urn:cps:org.onap.cps.ncmp.events.cm-handle-changes:1.0.0
To be confirmed. Awaiting response from @kieran mccarthy or @Csaba Kocsis

Note : Agreed to leave as it is in alignment with 3GPP. ( based on comment from @kieran mccarthy )

 

Feb 11, 2025 CPS team proposed to use urn:cps:org.onap.cps.ncmp.events:inventory-event:1.0.0

Not yet used.

Safe to change.

 

6

TrustLevel Events

NCMP Consumes Device Heartbeat

Nov 13, 2024
urn:cps:org.onap.cps.ncmp.dmi.events:cm-handle-trust-level:1.0.0

Safe to change at NCMP side.

AP @Csaba Kocsis to do changes at the DMI plugin side in the future.

Data Schema and Type Mapping

Below table shows the current mapping of the dataschema and type been send/received as part of the notifications.

Use Case

Current Data Schema Name

Internal Java Type

Proposed New Data Schema Name

Use Case

Current Data Schema Name

Internal Java Type

Proposed New Data Schema Name

1

AsyncEvent - DataOperationEvent

urn:cps:

org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent:1.0.0

org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent

urn:cps:org.onap.cps.ncmp.events.batch-response:1.0.0 Nov 13, 2024 ( Need to document in the RTD - same event , just the event schema name has changed )

2

Cm Notification Subscription ( Produce and Consume)

org.onap.ncmp.cm.subscription:1.0.0 ( Incoming to NCMP )

org.onap.ncmp.cm.subscription:1.0.0 ( Outgoing from NCMP )

org.onap.ncmp.dmi.cm.subscription:1.0.0 ( Incoming to DMI Plugin from NCMP )

org.onap.ncmp.dmi.cm.subscription:1.0.0 ( Outgoing from DMI towards NCMP )

 

 

org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.client_to_ncmp.NcmpInEvent

org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.ncmp_to_client.NcmpOutEvent

org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.ncmp_to_dmi.DmiInEvent

org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.dmi_to_ncmp.DmiOutEvent

ur:cps:org.onap.ncmp.events.subscription:1.0.0 Nov 13, 2024

urn:cps:org.onap.ncmp.cm.subscription:1.0.0

3

DMI Data Avc (Consuming)
( CM Data Notifications coming to NCMP from DMI )

 

 

Since we are just consuming , hence the team publishing will decide the schema.

urn:cps:org.onap.cps.ncmp.events.moi-changes:1.0.0 Nov 13, 2024

4

Lcm ( Lifecycle Management Events )

Non Cloud Event
DataSchema : org.onap.ncmp:cmhandle-lcm-event
Version : 1.0

org.onap.cps.ncmp.events.lcm.v1.LcmEventHeader

Non Cloud Event
DataSchema : org.onap.ncmp:cmhandle-lcm-event
Version : 1.0

urn:cps:org.onap.cps.ncmp.events:cm-handle-lcm:1.0.0 Nov 13, 2024 No change to be done now. Just name agreed.

5

NCMP Data Avc ( Used for publishing trustlevel changes)
Northbound

urn:cps:org.onap.cps.ncmp.events.avc.ncmp_to_client.AvcEvent:1.0.0

org.onap.cps.ncmp.events.avc.ncmp_to_client.AvcEvent

??
urn:cps:org.onap.cps.ncmp.events.cm-handle-changes:1.0.0 ( do we use ncmp notify events ?? @kieran mccarthy )

6

Trust Level Events (Consuming) trust level messages coming from DMIs

urn:cps:org.onap.cps.ncmp.events:device-trust-level-event-schema:1.0.0

 

urn:cps:org.onap.cps.ncmp.dmi.events:cm-handle-trust-level:1.0.0 Nov 13, 2024

 

 

 

Related content

CPS Data Notifications Overview
CPS Data Notifications Overview
More like this
CPS-2166: Forwarding CM Data Notification to Topic Defined in Subscription
CPS-2166: Forwarding CM Data Notification to Topic Defined in Subscription
More like this
CPS-1992: NCMP to Support new ProvMnS 3GPP sync single FDN request
CPS-1992: NCMP to Support new ProvMnS 3GPP sync single FDN request
Read with this
CPS-2007 - Update NCMP Events to include Alternate ID
CPS-2007 - Update NCMP Events to include Alternate ID
More like this
CPS-2166: Forwarding CM Data Notifications based on Subscription
CPS-2166: Forwarding CM Data Notifications based on Subscription
Read with this
CPS-858 Define Notifications on CM Handle Add (Ready) & Delete
CPS-858 Define Notifications on CM Handle Add (Ready) & Delete
More like this