blob: ceaaefda5a35e1755ab9d63c3d0b6335c155a2a9 [file] [log] [blame]
Ruslan Kashapov55dc6542021-03-02 16:48:41 +02001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (C) 2021 Pantheon.tech
sourabh_sourabh9a76aa32023-07-25 10:58:52 +01004.. Modifications Copyright (C) 2021-2023 Nordix Foundation
Ruslan Kashapov55dc6542021-03-02 16:48:41 +02005.. _modeling:
6
Ruslan Kashapov55dc6542021-03-02 16:48:41 +02007.. toctree::
8 :maxdepth: 1
9
lukegleesone1308ac2021-09-30 13:36:37 +010010CPS Modeling
11############
12
13CPS-Core Modeling
14=================
15
16Data Model
17----------
Ruslan Kashapov55dc6542021-03-02 16:48:41 +020018
19.. image:: _static/cps-modeling-concepts.png
20 :alt: Basic entities relationship
21
lukegleesone1308ac2021-09-30 13:36:37 +010022Basic Concepts
23--------------
24
Ruslan Kashapov55dc6542021-03-02 16:48:41 +020025Administrative entities
26
27- **Dataspace** is a primary logical separation of data.
28
29 Any application can define its own dataspace to store the model(s) and data it owns.
30 Dataspace is uniquely identified by it's name.
31
32- **Schema Set** describes a data model(s).
33
34 Schema Set holds reference(s) to single or multiple YANG modules. Schema Set belongs to dataspace
35 and uniquely identified by its name (within its own dataspace). Same YANG resources (source files) can be
36 referenced by multiple schema sets from different dataspaces.
37
lukegleesone1308ac2021-09-30 13:36:37 +010038- **Anchor** identifies the unique data set (data record) within a dataspace.
Ruslan Kashapov55dc6542021-03-02 16:48:41 +020039
40 Anchor always references a schema set within same dataspace which describes a data model of associated data.
41 Multiple anchors may reference same schema set. Anchor is uniquely identified by its name (within own dataspace).
42
43Data
44
45- **Data Node** represents a data fragment.
46
47 Each data node can have zero or more descendants and together they form a data instance tree.
48 The data node tree belongs to an anchor.
49
50 Data node is representing a data fragment described in a YANG model as a *container* and/or a *list*.
51 The data described as a *leaf* and/or a *leaf-list* are stored within a parent data node.
52
53 The data node position within a tree is uniquely identified by the node's unique **xpath** which can be used
54 for partial data query.
ToineSiebelink98c07872021-04-20 17:33:09 +010055
56Querying
57
lukegleesonf027cfb2021-11-08 15:53:12 +000058- **CPS Path** is used to query data nodes.
emacleeb176de22022-08-31 15:53:10 +010059
lukegleesonf027cfb2021-11-08 15:53:12 +000060.. toctree::
61 :maxdepth: 1
62
emaclee50e000f2023-04-18 14:49:24 +010063 xpath.rst
lukegleesonf027cfb2021-11-08 15:53:12 +000064 cps-path.rst
lukegleeson209c3852021-09-28 16:07:25 +010065
ToineSiebelink980089c2021-10-21 13:35:34 +010066.. Below Label is used by documentation for other CPS components to link here, do not remove even if it gives a warning
67.. _cps_ncmp_modelling:
68
lukegleesone1308ac2021-09-30 13:36:37 +010069NCMP Modeling
70=============
lukegleeson209c3852021-09-28 16:07:25 +010071
lukegleesone1308ac2021-09-30 13:36:37 +010072Data Model
73----------
lukegleeson209c3852021-09-28 16:07:25 +010074
DylanB95EST3fcf8692021-10-11 16:29:16 +010075NCMP stores DMI-Plugin and CM Handle relations using a data model described as per this Yang module.
lukegleeson209c3852021-09-28 16:07:25 +010076
lukegleesonde294742022-07-25 11:00:11 +010077:download:`DMI Yang Module <api/yang/dmi-registry@2022-05-10.yang>`
78
79Note: Although additional-properties are present in the model of the dmi-registry, these are considered private metadata and as such are not queryable.
lukegleesone1308ac2021-09-30 13:36:37 +010080
81Basic Concepts
82--------------
83
84- **CM-Handle** represents an instance a modeled Network Function(node) in ONAP.
85
86 These are stored as Anchors within CPS-Core.
87
DylanB95EST52029452022-08-04 14:16:33 +010088 - **CM-Handle States** are used to represent the potential states in which a CM-Handle can transition between.
89
90 The 5 possible CM-Handle states are: ADVISED, READY, LOCKED, DELETING, DELETED
91
92 **ADVISED** indicates that a CM-Handle has been registered successfully, and is waiting for the module synchronization process to sync the CM-Handle.
93
94 **READY** indicates that the CM-Handle has been synced successfully.
95
96 **LOCKED** indicates that the CM-Handle has not synced successfully. A retry mechanism within CPS will set the state back to ADVISED after a set time.
97
98 **DELETING** indicates that the CM-Handle is currently being deleted.
99
100 **DELETED** indicates that the CM-Handle has been deleted successfully.
101
bmiklose7578752022-08-04 15:36:11 +0200102 - **Data-sync state** is the state of the data synchronization process of the CM-Handle
103
104 There are 3 possibles states: NONE_REQUESTED, UNSYNCHRONIZED, SYNCHRONIZED
105
106 **NONE_REQUESTED** indicates that the data sync is not requested by the user
107
108 **UNSYNCHRONIZED** indicates the cm-handle is waiting for the data sync watchdog operation to carry out the sync process
109
110 **SYNCHRONIZED** indicates the watchdog process has finished the data synchronization successfully
111
lukegleesone1308ac2021-09-30 13:36:37 +0100112- **Datastores** represent different views of the cm data.
113
114 Datastores are defined for NCMP to access the CPS running or operational datastores. Currently supported datastores are:
115
116 +--------------------------------+-------------------------------------+-------------------------+
117 | Datastore | Configurations | Data access type |
118 +================================+=====================================+=========================+
119 | Passthrough-operational | config-true, config-false | read-only |
120 +--------------------------------+-------------------------------------+-------------------------+
121 | Passthrough-running | config-true | read-write |
ToineSiebelink980089c2021-10-21 13:35:34 +0100122 +--------------------------------+-------------------------------------+-------------------------+
lukegleesonde294742022-07-25 11:00:11 +0100123
sourabh_sourabh9a76aa32023-07-25 10:58:52 +0100124Additional information on CPS-NCMP interfaces
125---------------------------------------------
emacleeb176de22022-08-31 15:53:10 +0100126
lukegleesonde294742022-07-25 11:00:11 +0100127.. toctree::
128 :maxdepth: 1
129
DylanB95ESTdc656472022-08-08 15:22:54 +0100130 ncmp-cmhandle-querying.rst
seanbeirnef5a3a212023-03-06 09:12:49 +0000131 ncmp-inventory-querying.rst
sourabh_sourabh9a76aa32023-07-25 10:58:52 +0100132 ncmp-data-operation.rst
133
134CPS-NCMP Scheduled Processes
135----------------------------
136
137.. toctree::
138 :maxdepth: 1
139
emacleeb176de22022-08-31 15:53:10 +0100140 cps-scheduled-processes.rst