Juniper/py-auto-resource-generator

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

Homepage:

Size: 468

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

py-auto-resource-generator

Puppet and chef data-model generator from Yang model.

Overview

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.

Getting started

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.

LICENSE

Apache 2.0

CONTRIBUTORS


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.