Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Netapp 7Mode Configuration generator based on a XML configuration file.

Project description

Netapp 7M configuration generator

Tags: Netapp, Configuration, XML

Version history: 1.5.5

License: GPLv3

License URL:


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 <>.

PyPI status:

Latest PyPI version Number of PyPI downloads


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 : Donate link PayPal

Requirements / Pre-requisites

This script require:

  1. Python 2.X or 3.X (using netapp.config.maker.py3) run on a Linux server or workstation, 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.


from a linux server just run:

#shell> -c configfile.xml

This will generate two file <hostname>.config <hostname>.rc with hostname extract from the xml file Use netapp.config.maker.py3 for python3 :)

Quick help

usage: [-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 Global options (dns, autosupport, snmp) 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 Global options (dns, autosupport, snmp) 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 | Linkedin Profile | Twitter

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


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


Like the script? you can support my work with a donation using PayPal


v1.5.5 - 2013-09-21

  • First step in converting script to python3. Basic conversion thanks to 2to3. Will be optimize for python3.

v1.5.4 - 2013-09-18

  • Adding generating options like : dns, smnp, autosupport, ntp. check Xml example file for more detail
  • Adding variable in python script to define aggregate for vfiler root volume

v1.5.3 - 2013-09-17

  • Fixing interfaces names, now vm1-e1b2c instead vm1-e1be2c.
  • Fixing vfiler0 interfaces configurations
  • Adding <lb></lb> tag in interfaces configuration to add loadbalancing mode rr/mac/port

v1.5.0 - 2013-05-31

  • Fixing path probleme of template file

v1.1.0 - 2013-05-31

  • Moving from static .config and .rc layout to cheetah template to allow modification of the layout and comment add in .rc and .config output

v1.0.0 - 2013-04-02

  • Initial release

Project details

Download files

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

Files for netappConfigMaker, version 1.5.5
Filename, size File type Python version Upload date Hashes
Filename, size netappConfigMaker-1.5.5.tar.gz (24.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page