Skip to content

cmoberg/pyang-module-catalog-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A pyang plugin to extract OpenConfig module catalog data from YANG modules

This pyang plugin extracts module metadata from YANG files according to draft-openconfig-netmod-model-catalog. The output (in JSON or XML) can be fed right back into a NETCONF or RESTCONF server that have the module catalog YANG module (openconfig-module-catalog.yang) loaded.

$ pyang -f module-catalog ietf-interfaces\@2014-05-08.yang
{
    "module": {
        "prefix": "if",
        "dependencies": {
            "required-module": [
                {
                    "module-revision": "unknown",
                    "module-name": "ietf-yang-types"
                }
            ]
        },
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-interfaces",
        "name": "ietf-interfaces",
        "revision": "2014-05-08"
    }
}

About

Pyang plugin to produce YANG module catalog data from YANG modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages