Versions Compared

Key

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

...

Assumptions

#AssumptionNotes
1Prefix can be insert before each container but this is optionalSee RFC...

Issues & Decisions

#IssueNotes Decision
1Performance issue with current solutionCurrent solution used inefficient query to populate (first) prefix property for ALL fragments although only used for top level 

Will be handled by separate Jira already in progress, see

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

2Top level container is not always defined in first module

Will be handled by separate Jira

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

3Add prefix for container in same module

This is allowed but not done normally. Team concerned about performance issues and impact on URLs when using this
Ahila P will check need with her team.


4Add prefix to first container whe this is not the top level for the module it is definedImage A and B and C are defined in module with prefix X: so full path to C X:/A/B/C  however it is possible to retrieve B or C directly, in that case should teh prefix stil be use ie. X:/B/C
5Insert prefix or name (last token of namespace)

See sample from https://github.com/YangModels/yang/blob/main/vendor/cisco/xr/534/ietf-inet-types.yang

Code Block
languagexml
titleietf-inet-types.yang
module ietf-inet-types {

  namespace "urn:ietf:params:xml:ns:yang:ietf-inet-types";
  prefix "inet";
adx


Use 'ietf-inet-types' or 'inet' to insert 


6Prefix for (additional) leaves that are defined in a separate module then the container itself

7How to handle lists (instead of container)Possibly ignore [@key=value] part. Small neglectable change of same model defined both under same parent...
8Performance Considerations

SchemaContext generation is expensive. 

  1. Consider distributed cache (already used for other things in CPS) to store resolved paths 
  2. Consider normal cache for schemaContext object has they are not serializable)
  3. Consider generating matcher for all possible paths upon SChemaContext creation (would be limited number) and store in (disttributeddistributed) cache (with a reasonable time to live)

...

  1. Each Fragment needs a reference to the relevant module (on DB Level)
  2. Consider not removing original prefix's from input (could be caused by ODL parser)

...