1 [![Build Status](http://jenkins.sonata-nfv.eu/buildStatus/icon?job=son-emu)](http://jenkins.sonata-nfv.eu/job/son-emu)
3 # Distributed Cloud Emulator
6 The following lead developers are responsible for this repository and have admin rights. They can, for example, merge pull requests.
8 * Manuel Peuster (mpeuster)
9 * Steven Van Rossem (stevenvanrossem)
13 * Latest [Containernet](https://github.com/mpeuster/containernet) installed on the system
16 * pyaml (public domain)
18 * tabulate (public domain)
19 * argparse (Python software foundation license)
23 * oslo.config (Apache 2.0)
28 * requests (Apache 2.0)
29 * docker-py (Apache 2.0)
32 ### 3rd-party code used
38 * **src/emuvim/** all emulator code
39 * **api/** Data center API endpoint implementations (zerorpc, OpenStack REST, ...)
40 * **cli/** CLI client to interact with a running emulator
41 * **dcemulator/** Containernet wrapper that introduces the notion of data centers and API endpoints
42 * **examples/** Example topology scripts
43 * **test/** Unit tests
44 * **ansible/** Ansible install scripts
45 * **util/** helper scripts
48 Automatic installation is provide through Ansible playbooks.
50 * Requires: Ubuntu 14.04 LTS
51 * `sudo apt-get install ansible git`
52 * `sudo vim /etc/ansible/hosts`
53 * Add: `localhost ansible_connection=local`
57 * `git clone https://github.com/mpeuster/containernet.git`
58 * `cd ~/containernet/ansible`
59 * `sudo ansible-playbook install.yml`
60 * Wait (and have a coffee) ...
63 * Fork the repository.
65 * `git clone https://github.com/<user>/son-emu.git`
66 * `cd ~/son-emu/ansible`
67 * `sudo ansible-playbook install.yml`
72 In the `~/son-emu` directory:
75 * `python setup.py develop`
76 * Otherwise, for a classic installation:
77 * `python setup.py install`
79 * `sudo python src/emuvim/examples/simple_topology.py
82 * `son-emu-cli compute start -d datacenter1 -n vnf1`
83 * `son-emu-cli compute start -d datacenter1 -n vnf2`
84 * `son-emu-cli compute list`
86 * `containernet> vnf1 ping -c 2 vnf2`
91 * `sudo py.test -v src/emuvim/test/unittests`
94 * [Full CLI command documentation](https://github.com/sonata-nfv/son-emu/wiki/CLI-Command-Overview)