Versions Compared

Key

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

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-314

Table of Contents

Currently, in CPS, it is only possible to create a dataspace that will hold YANG modules and allow the service to create instances of the models via anchors.

...

  1. REST Endpoint in CPS-Core

  2. Java API method in CPS-Service

  3. Data Persistence Service

Issues

#IssueNotesDecision
1Abandoned SchemaSets

Question: Will the SchemaSets be automatically deleted once all anchors using them have been deleted?

SchemaSets are not automatically deleted once the anchors using them have been deleted

SchemaSets are deleted once dataspace holding it is deleted

To delete the anchor under the dataspace we first need to delete the fragment associated with this anchor. 

If we delete the schema set for the anchor and dataspace, we will delete the associated schemaset yang resource, however, the yang resource table does not change.


Agreed with Toine Siebelink that a dataspace can only be deleted if there are no anchors and no schemasets associated with it. The existence of either of these will lead to an exception. see issue #2 below

2Dataspace not empty exception

If dataspace is not empty, throw exception 'DataspaceNotEmptyException' (?)

We decided to use the CPS Exception

Implementation Proposal

REST layers

...