kennethjiang / YANS

Yet Another Network Simulator
MIT License
25 stars 6 forks source link

=============================== YANS

.. image:: https://badge.fury.io/py/YANS.png :target: http://badge.fury.io/py/YANS

.. image:: https://travis-ci.org/kennethjiang/YANS.png?branch=master :target: https://travis-ci.org/kennethjiang/YANS

Yet Another Network Simulator

YANS is a Docker <https://www.docker.com/>_-based network simulator. It is lightening-fast. The screenplay below demonstrates that YANS can launch a simulated network in under 3 seconds.

.. image:: https://github.com/kennethjiang/YANS/raw/master/screenplay.gif :height: 512 px :width: 499 px :scale: 50 %

  1. Install prerequisites:

Mac OS X

Ubuntu

  1. Install YANS

.. code:: bash

pip install YANS
  1. Create a file named topo.yaml

.. code::

links:
    - name: link1
      nodes:
         - node1
         - node2
    - name: link2
      nodes:
         - node1
    - name: link3
  1. Go!

Linux

sudo yans -t <path_to_topo.yaml> up

Mac OS X

yans -t <path_to_topo.yaml> up

Requirements

License

MIT licensed. See the bundled LICENSE <https://github.com/kennethjiang/yans/blob/master/LICENSE>_ file for more details.