name docker interfaces according to start_compute option
diff --git a/src/emuvim/cli/compute.py b/src/emuvim/cli/compute.py
index 6423917..2636315 100755
--- a/src/emuvim/cli/compute.py
+++ b/src/emuvim/cli/compute.py
@@ -31,8 +31,6 @@
if args.get("network") is not None:
nw_list = self._parse_network(args.get("network"))
- pp.pprint('nwlist1: {0}'.format(nw_list))
-
r = self.c.compute_action_start(
args.get("datacenter"),
args.get("name"),
@@ -85,18 +83,24 @@
nw_list = list()
if args.get("network") is not None:
nw_list = self._parse_network(args.get("network"))
- logging.info('nwlist: {0}'.format(nw_list))
+
+ params = self._create_dict(
+ network=nw_list,
+ command=args.get("docker_command"),
+ input=args.get("input"),
+ output=args.get("output"))
+
r = self.c.compute_profile(
args.get("datacenter"),
args.get("name"),
args.get("image"),
- network=nw_list,
- command=args.get("docker_command"),
- input=args.get("input"),
- output=args.get("output")
+ params
)
pp.pprint(r)
+ def _create_dict(self, **kwargs):
+ return kwargs
+
def _parse_network(self, network_str):
'''
parse the options for all network interfaces of the vnf