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"
}
}
```
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyang-module-catalog-plugin-0.2.tar.gz
.
File metadata
- Download URL: pyang-module-catalog-plugin-0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1475cd3f80e863083f6b988476d84b456086d5183104b4f151ca651f6cdccf |
|
MD5 | aaf5c0c8fa0e78afdb6f3d2463bd5875 |
|
BLAKE2b-256 | bacda6c71b1fc8f8f3b5bdbc87f185afc60572134ee54778b6604de5370b5d4a |