Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1244 Do not use SchemaNode in yang-data
  3. YANGTOOLS-1528

Create a yang-data-api equivalent of TypeDefinition

XMLWordPrintable

      yang.model.api.TypeDefinition has a problem, which is its inherent tie-in with yang-data-api representation – via its getDefaultValue() method. It also implies SchemaNode in its hierarchy, which is largely unused in yang-data-api users interacting with TypeDefinition.

      Define a new interface, yang.data.api.type.NormalizedType, which will expose the same information as yang.model.api.TypeDefinition. The interface hierarchy should capture the base YANG types, such there is a yang.data.api.type.Uint8Type, etc. mirroring yang.model.api.type. Note the base interface should not be generic.

      Return this type from DataSchemaContext.SimpleValue#type().

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: