Name: py-auto-resource-generator
Owner: Juniper Networks
Description: Python library for conversion of standardiszed Yang data model to IT automation tool data model for Puppet and Chef
Created: 2014-12-18 05:46:17.0
Updated: 2015-06-04 15:08:15.0
Pushed: 2014-12-19 06:51:19.0
Size: 468
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Puppet and chef data-model generator from Yang model.
Python library for conversion of standardized Yang data model to IT automation tool data model for Puppet and Chef. The library is in initial phase of development and currently support conversion from Yang model to Puppet resource type, support for Chef will be added in future.
Make sure to install pyang and lxml. Install lxml
install lxml
Install pyang
install pyang
Add puppet.py in plugin directory of pyang installation.
For instruction on using pyang refer pyang
Below is the command to generate interface Puppet resource type from interface Yang model
ng -f puppet --puppet-output /usr/tmp ietf-interfaces.yang
Puppet resource types file will be created in 'puppet-types' folder in destination path mentioned in command after '–puppet-output', if destination path is not give the 'puppet-types' folder will be created in current working directory.
Apache 2.0