Skip to main content

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

Project description

# 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](https://tools.ietf.org/html/draft-openconfig-netmod-model-catalog-01). 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"
}
}
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyang-module-catalog-plugin-0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file pyang-module-catalog-plugin-0.2.tar.gz.

File metadata

File hashes

Hashes for pyang-module-catalog-plugin-0.2.tar.gz
Algorithm Hash digest
SHA256 6c1475cd3f80e863083f6b988476d84b456086d5183104b4f151ca651f6cdccf
MD5 aaf5c0c8fa0e78afdb6f3d2463bd5875
BLAKE2b-256 bacda6c71b1fc8f8f3b5bdbc87f185afc60572134ee54778b6604de5370b5d4a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page