projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
name docker interfaces according to start_compute option
[osm/vim-emu.git]
/
src
/
emuvim
/
cli
/
compute.py
diff --git
a/src/emuvim/cli/compute.py
b/src/emuvim/cli/compute.py
index
6423917
..
2636315
100755
(executable)
--- a/
src/emuvim/cli/compute.py
+++ b/
src/emuvim/cli/compute.py
@@
-31,8
+31,6
@@
class ZeroRpcClient(object):
if args.get("network") is not None:
nw_list = self._parse_network(args.get("network"))
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"),
r = self.c.compute_action_start(
args.get("datacenter"),
args.get("name"),
@@
-85,18
+83,24
@@
class ZeroRpcClient(object):
nw_list = list()
if args.get("network") is not None:
nw_list = self._parse_network(args.get("network"))
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"),
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)
)
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
def _parse_network(self, network_str):
'''
parse the options for all network interfaces of the vnf