3 Simple CLI client to interact with a running emulator.
5 (c) 2016 by Manuel Peuster <manuel.peuster@upb.de>
7 The CLI offers different tools, e.g., compute, network, ...
8 Each of these tools is implemented as an independent Python
11 cli compute start dc1 my_name flavor_a
12 cli network create dc1 11.0.0.0/24
23 print "Usage: son-emu-cli <toolname> <arguments>"
25 if sys.argv[1] == "compute":
26 compute.main(sys.argv[2:])
27 elif sys.argv[1] == "network":
28 network.main(sys.argv[2:])
29 elif sys.argv[1] == "datacenter":
30 datacenter.main(sys.argv[2:])
31 elif sys.argv[1] == "monitor":
32 monitor.main(sys.argv[2:])
34 if __name__ == '__main__':