Netapp 7M configuration generator
=================================

Tags: Netapp, Configuration, XML

Version history: 1.5.2

License: GPLv3

License URL: http://www.gnu.org/licenses/gpl-3.0.html

License
=======

    Copyright (C) 2012, 2013  Shah Mohsin WAHED

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
	
PyPI status:
============

.. image:: https://pypip.in/v/netappConfigMaker/badge.png
    :target: https://crate.io/packages/netappConfigMaker/
    :alt: Latest PyPI version

.. image:: https://pypip.in/d/netappConfigMaker/badge.png
    :target: https://crate.io/packages/netappConfigMaker/
    :alt: Number of PyPI downloads


Description
===========

 
This script will create configuration file (".config" and ".rc") for Netapp NAS filer using Data Ontap in 7M (seven mode) based on a XML configuration file.
Making it simpler to create standard and quick configs.

Project link : http://shah.nas.scripting.cloudcorner.net
Donate link `PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=shahmohsin%2ewahed%40gmail%2ecom&lc=FR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted>`_


Requirements / Pre-requisites
=============================

This script require:

    1. Python 2.X run on a Linux server, haven't test on windows
    2. few python libs (lxml, argparse)
    3. of course a Netapp appliance running DataOntap in 7M (work also with Netapp simulator or Netapp Edge) to test or apply your configuration.

usage
=====
from a linux server  just run:

        #shell> netapp.config.maker.py -c configfile.xml

This will generate two file <hostname>.config <hostname>.rc with hostname extract from the xml file

Quick help
----------

        usage: netapp.config.maker.py [-h] -c configfile [-v]

        optional arguments:
            -h, --help show this help message and exit

            -c configfile, --configfile configfile XML config file

            -v, --vfiler vfiler config generator only



XML Configuration file
----------------------

see the ConfigExample file in ./docs for more information.


.config layout
--------------

The .config file have the following layout:

Ifgroup Configuration
Vlan Configuration
General Options
Ipspaces Configuration
Interfaces Configuration
Global Routes
vFilers Configuration

the layout is defined in netapp.config.maker.Config.tmpl file you can rearrange it to modify the layout
        
.rc layout
----------

The .rc file have the following layout:

Basic Configuration
Ifgroup Configuration
Vlan Configuration
Interfaces Configuration
Global Routes
vFilers Configuration

the layout is defined in netapp.config.maker.RC.tmpl file you can rearrange it to modify the layout

Authors and Contributors
========================

Author: `Shah Mohsin WAHED <mailto:shahmohsin.wahed@gmail.com>`_ | `Linkedin Profile <http://www.linkedin.com/pub/shah-mohsin-wahed/1a/750/18a>`_ | `Twitter <https://twitter.com/sm_wahed>`_

Thanks to David Rousseau and Timo Sugliani for encouraging me to publish my work on github and pypi :)

Support
=======

Having trouble with this scripts, think about an evolution ? Contact me!

Donation:
=========

Like the script? you can support my work with a donation using `PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=shahmohsin%2ewahed%40gmail%2ecom&lc=FR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted>`_
