Sign inSign up

martimy/yangtools

By martimy

Updated over 2 years ago

Container that includes YANG Tools: pyang (with xpath plugin) and libyang.

Image
Networking
0

227

martimy/yangtools repository overview

This container include YANG tools: pyang and libyang. It can be used to learn and teach YANG.

examples of use:

$ docker run --rm -it -v $(pwd)/.:/app/ martimy/yangtools:latest pyang -f tree pc-components.yang

Or

$ docker run --rm -it -v $(pwd)/.:/app/ martimy/yangtools:latest
/app# pyang -f tree pc-components.yang
module: pc-components
  +--rw pc
     +--rw cpu
     |  +--rw brand?   string
     |  +--rw model?   string
     |  +--rw cores?   uint16
     |  +--rw speed?   decimal64
     +--rw memory
     |  +--rw size?    uint64
     |  +--rw type?    string
     |  +--rw speed?   uint32
     +--rw storage
     |  +--rw type?       enumeration
     |  +--rw capacity?   uint64
     +--rw peripherals
        +--rw device* [name]
           +--rw name    string
           +--rw type?   enumeration
/app#

For more information at github

Tag summary

Content type

Image

Digest

sha256:dfb3cff2b

Size

80 MB

Last updated

over 2 years ago

docker pull martimy/yangtools