Skip to content

yanglint doesn't expends typedef leaf to its type #1003

@iGovindY

Description

@iGovindY

using yanglint is there a way to know types defined as typedef like in below example?
_3gpp-common-yang-types:DistinguishedName is defined as typedef but its actual type is string.

> add _3gpp-nr-nrm-nrcellcu.yang
> print _3gpp-nr-nrm-nrcellcu
module: _3gpp-nr-nrm-nrcellcu

  augment /_3gpp-common-managed-element:ManagedElement/_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction:
    +--rw NRCellCU* [id]
       +--rw id            string
       +--rw attributes
          +--rw userLabel?             string
          +--rw vnfParametersList!
          |  +--rw vnfInstanceId    string
          |  +--rw vnfdId?          string
          |  +--rw flavourId?       string
          |  +--rw autoScalable     boolean
          +--rw peeParametersList!
          |  +--rw siteIdentification    string
          |  +--rw siteLatitude?         decimal64
          |  +--rw siteLongitude?        decimal64
          |  +--rw siteDescription       string
          |  +--rw equipmentType         string
          |  +--rw environmentType       string
          |  +--rw powerInterface        string
          +--rw priorityLabel          uint32
          +--rw cellLocalId            int32
          +--rw pLMNIdList* [mcc mnc]
          |  +--rw mcc    _3gpp-common-yang-types:Mcc
          |  +--rw mnc    _3gpp-common-yang-types:Mnc
          +--rw sNSSAIList*            _3gpp-common-yang-types:SNssai
          +--rw rRMPolicyType          uint16
          +--rw rRMPolicy              string
          +--rw rRMPolicyRatio1List* [groupId]
          |  +--rw groupId            uint32
          |  +--rw sNSSAIList*        _3gpp-common-yang-types:SNssai
          |  +--rw rRRMPolicyRatio?   uint8
          +--rw rRMPolicyRatio2* [groupId]
          |  +--rw groupId                    uint32
          |  +--rw sNSSAIList*                _3gpp-common-yang-types:SNssai
          |  +--rw quotaType?                 quotaType
          |  +--rw rRMPolicyMaxRatio?         uint8
          |  +--rw rRMPolicyMarginMaxRatio?   uint8
          |  +--rw rRMPolicyMinRatio?         uint8
          |  +--rw rRMPolicyMarginMinRatio?   uint8
          +--ro nRFrequencyRef?        _3gpp-common-yang-types:DistinguishedName

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions