Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-47

Incorrect type transformation in TypeProviderImpl.javaTypeForSchemaDefinitionType

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Windows
      Platform: PC

    • 1862

    Description

      Incorrect Type transformation from yang typedef to GeneratedTransferObject when base type of yang typedef is integer or decimal type or derived from and the typedef is used in leaf with additional range constraint restriction.

      Yang model:

      module typedefs {
        typedef yang-int8 {
          type int8;
        }
      }
      
      module buggy-typedef-use {
        import typedefs { prefix tp; }
      
        leaf used-type {
          type tp:yang-int8;
        }
      
        leaf restricted-type {
          type tp:yang-int8 {
            range 1..100;
          }
        }
      }
      

       

      Transformation of leaf "used-type" results into GeneratedTransferObject implementation since it is transformation of typedef statement to Yang Java Type. Transformation of "restricted-type" leaf results into "Concrete Type" without additional range restriction check which is invalid since it should be transformed as GeneratedTransferObject

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            filip.gregor@pantheon.tech Filip Gregor
            lsedlak@cisco.com Lukas Sedlak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: