X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fcli%2Fcompute.py;h=15fea9194c180623e0b2128f68ea3bfd59175401;hb=b187ae2299b20ac698eb4b9d3c83c63cb6511220;hp=df40814e932d22d6389959670066b4d69c3ce0b4;hpb=726a45874fda781f19d1bc1c21b18ba8526e2c19;p=osm%2Fvim-emu.git diff --git a/emuvim/cli/compute.py b/emuvim/cli/compute.py old mode 100644 new mode 100755 index df40814..15fea91 --- a/emuvim/cli/compute.py +++ b/emuvim/cli/compute.py @@ -34,6 +34,7 @@ class ZeroRpcClient(object): args.get("datacenter"), args.get("name"), args.get("image"), + args.get("docker_command"), network) pp.pprint(r) @@ -80,7 +81,8 @@ class ZeroRpcClient(object): parser = argparse.ArgumentParser(description='son-emu compute') parser.add_argument( "command", - help="Action to be executed: start|stop|list") + choices=['start', 'stop', 'list', 'status'], + help="Action to be executed.") parser.add_argument( "--datacenter", "-d", dest="datacenter", help="Data center to in which the compute instance should be executed") @@ -88,8 +90,11 @@ parser.add_argument( "--name", "-n", dest="name", help="Name of compute instance e.g. 'vnf1'") parser.add_argument( - "--image", dest="image", + "--image","-i", dest="image", help="Name of container image to be used e.g. 'ubuntu'") +parser.add_argument( + "--dcmd", "-c", dest="docker_command", + help="Startup command of the container e.g. './start.sh'") parser.add_argument( "--net", dest="network", help="Network properties of compute instance e.g. '10.0.0.123/8'")