summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorKailun Qin <kailun.qin@intel.com>2018-04-16 16:38:36 +0800
committerKailun Qin <kailun.qin@intel.com>2018-04-16 16:40:16 +0800
commitf45a4f36f6982e5430c5f8491ec25fd1d9037571 (patch)
tree3ef96bfc3e65e66316152d550327a4ed580057b8 /lcm
parenteb2b62f063e14a85a66cc8dfe54cf404b9099ef8 (diff)
Change ip_address type to string refer to MC
MC only accepts ip in string format. Change ip_address list to string to align with the MC frozen api. Multi ip will be handled in MC. Change-Id: I181dd645843eb10e9ebfcd19c21a03cdeb49b260 Issue-ID: VFC-870 Signed-off-by: Kailun Qin <kailun.qin@intel.com>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/pub/vimapi/adaptor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py
index b7e9a34f..fb1782b6 100644
--- a/lcm/lcm/pub/vimapi/adaptor.py
+++ b/lcm/lcm/pub/vimapi/adaptor.py
@@ -199,7 +199,7 @@ def create_port(vim_cache, res_cache, data, port, do_notify, res_type):
l3_address_data = one_protocol_data["address_data"]["l3_address_data"]
fixed_ip_address = ignore_case_get(l3_address_data, "fixed_ip_address")
ip_address.extend(fixed_ip_address)
- set_opt_val(param, "ip", ip_address)
+ set_opt_val(param, "ip", ",".join(ip_address))
set_opt_val(param, "vnicType", ignore_case_get(port["properties"], "vnic_type"))
set_opt_val(param, "securityGroups", "") # TODO
vim_id, tenant_name = location_info["vimid"], location_info["tenant"]