Network Test Framework
Python
Latest commit 106c2a0 Dec 22, 2016 @sgurram sgurram committed on GitHub Merge pull request #2 from p4lang/vol-check
check mapped volume exists
Permalink
Failed to load latest commit information.
examples ntf initial commit Nov 18, 2016
src/ntf check mapped volume exists Dec 21, 2016
LICENSE Initial commit Jul 1, 2016
README.md Update README.md Nov 18, 2016
ntf ntf initial commit Nov 18, 2016
setup.py ntf initial commit Nov 18, 2016

README.md

NTF Network Test Framework

Introduction

NTF is a python based network test framework. It is based on mininet and unittest.

Requisites

  • Python 2.7 or higher
  • Mininet version 2.2.1 or higher
  • Docker version 1.10 or higher
  • sudo privileges to run ntf

Install

NTF can be installed using sudo python setup.py install

Running Tests

Prior to running tests using NTF, the required docker image needs to be present. Follow the examples/topology/l2_topology.json and examples/topology/config.json to define topology and the switch properties. Write the unittest case to use the topology as in examples/tests/switch_tests.py. Run NTF as below:

sudo ./ntf --topology <topologyfile_with_path> --config <configfile_with_path>
--test-dir <test_directory> --test <testname>

optional parameters:

--cli: To get to mininet cli prompt during test.
--log-file <filename>: Filename to use for logging
--log-dir <log_dir>: Folder to write the logfile to.