Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-138

Normalize YANG resource names on schema set creation

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • CPS-Core
    • None

      As it was mentioned in CPS-125 the YANG specification recommends naming convention
      for YANG resources (RFC-6020#5.2), however it's not a strict requirement.

      As result there could be case when same resource is being uploaded several times  by various consumers under different names, but the very first resource name will be persisted in database.

      While resource name has no actual  impact on functionality the unexpected name of resource may confuse on data analysis and/or troubleshooting. Considered yang resource name to be normalized to format recommended by the specification.

      The name normalization should be performed after validation in order to have original resource names for error messages (if validation fails).

      Acceptance criteria:

      • utility method (performing name normalization to recommended format using resource content)
      • CpsModuleServiceImpl.createSchemaSet() method updated to perform resource names normalization
      • test coverage for both utility method and the service's createSchemaSet method

            Unassigned Unassigned
            rkashapov rkashapov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: