22a94b168309ca0b24a44367f4515b77a0476a80
[osm/vim-emu.git] / README.md
1 # emulator-strawman
2
3 (c) 2015 by Manuel Peuster
4
5
6 ## emu-vim
7
8 ### Requirements
9 * needs the latest Dockernet to be installed in the system
10  * the wrapper uses standard Python imports to use the Dockernet modules
11 * Uses ZeroMQ based RPC to open a cloud-like interface that can be used by a demo CLI client
12  * pip install import zerorpc
13  * This will be replaced / extended by a REST API later
14
15 ### Project structure
16 * **emuvim/** all emulator code 
17  * **api/** Data center API endpoint implementations (zerorpc, OpenStack REST, ...)
18  * **cli/** CLI client to interact with a running emulator
19  * **dcemulator/** Dockernet wrapper that introduces the notion of data centers and API endpoints
20  * **test/** Unit tests
21  * **example_topology.py** An example topology script to show how topologies can be specified
22
23 ### Run
24 * First terminal:
25  * `sudo python example_topology.py`
26 * Second terminal:
27  * TODO add CLI commands here (e.g. request the start of a new compute resource)
28
29
30 ### TODO
31 * DCemulator
32  * ...
33 * Write unit tests
34 * Create an Ansible-based automatic installation routine
35 * Add resource constraints to datacenters
36 * Check if we can use the Mininet GUI to visualize our DCs?
37
38
39 ### Features / Done
40 * Define a topology (Python script)
41  * Add data centers
42  * Add switches and links between the,
43 * Define API endpoints in topology
44  * call startAPI from topology definition and start it in a own thread
45  * make it possible to start different API endpoints for different DCs
46 * DCemulator
47  * correctly start and connect new compute resources at runtime
48  * remove and disconnect compute resources at runtime
49  * do IP management for new containers
50  * list active compute resources
51 * Cloud-like reference API with CLI for demonstrations
52  * Write CLI client
53  * Start compute
54  * Stop compute