small bugfix, list should return a list not a iterator
[osm/vim-emu.git] / README.md
index 22a94b1..91d75c8 100644 (file)
--- a/README.md
+++ b/README.md
  * **test/** Unit tests
  * **example_topology.py** An example topology script to show how topologies can be specified
 
+### Installation
+Automatic installation is provide through an Ansible playbook.
+* Requires: Ubuntu 14.04 LTS
+* `sudo apt-get install ansible git`
+* `sudo vim /etc/ansible/hosts`
+* Add: `localhost ansible_connection=local`
+
+#### 1. Dockernet
+* `git clone https://github.com/mpeuster/dockernet.git`
+* `cd dockernet/ansible`
+* `sudo ansible-playbook install.yml`
+* Wait (and have a coffee) ...
+
+#### 2. Emulator
+* `cd`
+* `git clone https://github.com/mpeuster/emulator-strawman.git`
+* `cd emulator-strawman/ansible`
+* `sudo ansible-playbook install.yml`
+
+
 ### Run
 * First terminal:
+ * `cd emulator-strawman/emuvim`
  * `sudo python example_topology.py`
 * Second terminal:
- * TODO add CLI commands here (e.g. request the start of a new compute resource)
+ * `cd emulator-strawman/emuvim/cli`
+ * `./son-emu-cli compute start -d dc1 -n vnf1`
+ * `./son-emu-cli compute start -d dc1 -n vnf2`
+ * `./son-emu-cli compute list`
+* First terminal:
+ * `dockernet> vnf1 ping -c 2 vnf2`
 
 
 ### TODO
 * DCemulator
  * ...
 * Write unit tests
-* Create an Ansible-based automatic installation routine
 * Add resource constraints to datacenters
 * Check if we can use the Mininet GUI to visualize our DCs?
 
@@ -52,3 +77,4 @@
  * Write CLI client
  * Start compute
  * Stop compute
+* Create an Ansible-based automatic installation routine