References
- CPS-1065Getting issue details... STATUS
Open Issues & Decisions
# | Issue | Notes | Decision |
---|---|---|---|
1 | List scenarios | Need to clarify scenarios | Refer to Internal study |
2 | Topics | what topics are used in what scenario (topic for each Datastore ?) | Refer to Internal study |
3 | Handle unknown event schemas | Wrap event? | |
Event Flow Sketch
CM Event Specification Outline
{ "eventId" : "9999", # some generic event uuid generated by DMI Plugin "event": { } |
---|
RFC 8641 : yang-datastore notification definition
notifications: +---n push-update | +--ro id? sn:subscription-id | +--ro datastore-contents? <anydata> | +--ro incomplete-update? empty +---n push-change-update {on-change}? +--ro id? sn:subscription-id +--ro datastore-changes | +--ro yang-patch | +--ro patch-id string | +--ro comment? string | +--ro edit* [edit-id] | +--ro edit-id string | +--ro operation enumeration | +--ro target target-resource-offset | +--ro point? target-resource-offset | +--ro where? enumeration | +--ro value? <anydata> +--ro incomplete-update? empty |
---|
'operation' type definition
Event Payload Example
Proposed CM event |
---|
{ "eventId" : "9999", # some generic event uuid generated by DMI Plugin "event": { "push-change-update" : { "datastore-changes" : { {
} } } |
Topics
Topic types
- cm-events[-<targetgroup>] : topic for publication of events from NCMP to clients (suggest to rename existing topic from 'ncmp-events' to cm-events). In preparation to future needs the there may be separate topics for different security groups. NCMP solution should consider this upfront. By default cm-events is the default topic where ALL events are published. Different client may subscribe to different topics. It is their responsibility to subscribe to the appropriate topics as new security groups come into existance. Again, for now the only topic in scope is the cm-events topic.
- cm-avc-subscription : topic for avc event subscriptions. This topic may be defined externally to NCMP. If external then it should be possible to tell NCMP the topic name and where to find it.
- ncmp-dmi-cm-avc-events : internal topic for comms between dmi-plugin ↔ ncmp for avc and subscription events
Topic partitioning
All events for the same cmhandleId should be sent to the same partition. This will guarantee ordering. Ordering is only guaranteed per topic, not across topic (future consideration).
Subscription Proposal
TBD