summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2018-11-14 10:25:07 +0000
committerHaibin Huang <haibin.huang@intel.com>2018-11-14 10:25:07 +0000
commit70314109351b750c8bcabbccb9bc4b021d9837dc (patch)
tree634299b57672f46c132f33bf9d04bc6dbc7fe2ea
parent26cb6aa172fe074cfc25effe0abdc8b5b15ba149 (diff)
Can't create two port in one network
Change-Id: I2f57a75b9fb1daec8e59205451a14178a7724760 Issue-ID: VFC-1186 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
-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 44153620..a7a0fd3d 100644
--- a/lcm/lcm/pub/vimapi/adaptor.py
+++ b/lcm/lcm/pub/vimapi/adaptor.py
@@ -251,7 +251,7 @@ def create_port(vim_cache, res_cache, data, port, do_notify, res_type):
subnet_id = get_res_id(res_cache, RES_SUBNET, port["vl_id"])
param = {
"networkId": network_id,
- "name": port["properties"].get("name", "undefined")
+ "name": port["cp_id"]
}
set_opt_val(param, "subnetId", subnet_id)
set_opt_val(param, "macAddress", ignore_case_get(port["properties"], "mac_address"))