[Python] Pyang can't display subtree when using "-f tree"

Discussão em 'Python' iniciado por Stack, Setembro 5, 2025.

  1. Stack

    Stack Membro Participativo

    Good afternoon and Happy Friday!

    I installed Pyang in a venv environment in Ubuntu 24.04.1, and for the life of me, can't get it to display a subtree of a Yang model.

    All it does is just goes to another prompt, with verbose it just shows its reading.

    Please see below:

    (.yangenv) administrator@administrator-VMware-Virtual-Platform:~/Documents/yang/vendor/cisco/xe/1791$ pyang -f tree Cisco-IOS-XE-interfaces.yang
    (.yangenv) administrator@administrator-VMware-Virtual-Platform:~/Documents/yang/vendor/cisco/xe/1791$ pyang -f tree -verbose Cisco-IOS-XE-interfaces.yang
    pyang 2.7.1
    (.yangenv) administrator@administrator-VMware-Virtual-Platform:~/Documents/yang/vendor/cisco/xe/1791$ pyang -f tree --verbose Cisco-IOS-XE-interfaces.yang
    # module search path: .:/home/administrator/Documents/yang/.yangenv/share/yang/modules
    # read Cisco-IOS-XE-interfaces.yang (CL)
    # read Cisco-IOS-XE-native.yang
    # read cisco-semver.yang
    # read ietf-inet-types.yang
    # read Cisco-IOS-XE-types.yang
    # read Cisco-IOS-XE-features.yang
    # read Cisco-IOS-XE-interface-common.yang
    # read Cisco-IOS-XE-hsrp.yang
    (.yangenv) administrator@administrator-VMware-Virtual-Platform:~/Documents/yang/vendor/cisco/xe/1791$

    Continue reading...

Compartilhe esta Página