Versions Compared

Key

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

...

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

  1. get Gget modules (delta) from Node (DMI)
  2. create Create schemasetalt a. combination Combination of exiting Refs and new yang resources
  3. alt b all existing references
  4. create anchor
  5. update schemasetalt a. combination New yang resources empty for known module sets (known tag)
  6. Create anchor
  7. Update schemaset. Combination of exiting Refs and new yang resources
    New yang resources
  8. alt b all existing references

Proposals

...

  1. empty for known module sets (known tag)

Changes agreed between Daniel Hanrahan , Sourabh Sourabh and Toine Siebelink 


ChangeNotes
1No need for ModuleSetTagCachereduce complexity, no significant impact on performance
Can be re-introduced in a better way later if needed but not expected
2Use same method for New and Known Schema Sets (module set tags)
  • NEW SchemaSet → 0 or More NEW YangResources, 1 OR more

...

  • ModuleReferences
  • KNOWN

...

  • SchemaSet → 0 NEW YangResources, 1 OR more ModuleReferences

...


Code Block
languagejava
titlePseudo Code
linenumberstrue
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)
}



...