X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fcli%2Fcompute.py;h=15fea9194c180623e0b2128f68ea3bfd59175401;hb=b187ae2299b20ac698eb4b9d3c83c63cb6511220;hp=87247cb16886d36b1dd5c5c6c9ff590fe8172f20;hpb=9686a6d137ab79039b3c886837c7eb76815cdafa;p=osm%2Fvim-emu.git diff --git a/emuvim/cli/compute.py b/emuvim/cli/compute.py old mode 100644 new mode 100755 index 87247cb..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) @@ -89,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'")