2 For now only a dummy client. Connects to the zerorpc interface of the
3 emulator and performs some actions (start/stop/list).
5 We will provide a full CLI here later on which looks like:
7 cli compute start dc1 my_name flavor_a
8 cli network create dc1 11.0.0.0/24
16 pp
= pprint
.PrettyPrinter(indent
=4)
17 print "Example CLI client"
18 # create connection to remote Mininet instance
20 c
.connect("tcp://127.0.0.1:4242")
23 print c
.compute_action_start("dc2", "d1")
24 print c
.compute_action_start("dc2", "d2")
27 print c
.compute_list("dc2")
30 pp
.pprint(c
.compute_status("dc2", "d1"))
31 pp
.pprint(c
.compute_status("dc2", "d2"))
35 print c
.compute_action_stop("dc2", "d1")
36 print c
.compute_action_stop("dc2", "d2")
39 if __name__
== '__main__':