...
Note. Error handling like invalid IDs are handled during the Synchronous part of registration and not part of this use-case overview.
Upgrade to the same Tag should be captured in synchronous pre-processing.
re-usable methods
- get Gget modules (delta) from Node (DMI)
- create Create schemasetalt a. combination Combination of exiting Refs and new yang resources
- alt b all existing references
- create anchor
- update schemasetalt a. combination New yang resources empty for known module sets (known tag)
- Create anchor
- Update schemaset. Combination of exiting Refs and new yang resources
New yang resources - alt b all existing references
Proposals
...
- empty for known module sets (known tag)
Changes agreed between Daniel Hanrahan , Sourabh Sourabh and Toine Siebelink
Change | Notes | |
---|---|---|
1 | No need for ModuleSetTagCache | reduce complexity, no significant impact on performance Can be re-introduced in a better way later if needed but not expected |
2 | Use same method for New and Known Schema Sets (module set tags) |
|
...
|
...
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
void processCreate() { if (tagProvided && tag in DB) { allModuleRefences = referencesFromDb newYangResources = [] else { delta = getDeltagetModulesDelta() newYangResources = delta.newYangResources allModuleRefences = delta.allModuleRefences } } creatSchemaSet(newYangResources, allModuleRefences) createAnchor() } void processUpgrade() { if (tagProvided && tag in DB) { allModuleRefences = referencesFromDb newYangResources = [] else { delta = getDeltagetModulesDelta() newYangResources = delta.newYangResources allModuleRefences = delta.allModuleRefences } } udpateSchemaSet(newYangResources, allModuleRefences) } |
...