summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/biz/change_ext_conn.py
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-07-26 15:43:56 +0800
committerhongyuzhao <zhao.hongyu@zte.com.cn>2019-07-26 15:54:08 +0800
commit391f841b3c4ec5a0e10ae5c242f7e16209ec98d6 (patch)
treedfc1ae0306235640ae6e8ad91745ce73d4c79b68 /lcm/lcm/nf/biz/change_ext_conn.py
parentc23b4b6131096628c13469d4dc204beb4c05eb55 (diff)
improve code coverage rate (change ext conn) after vfclcm upgraded from python2 to python
Change-Id: Ibde361e523bfa070a3ddd79a6143ae565400c07f Issue-ID: VFC-1429 Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>:wq
Diffstat (limited to 'lcm/lcm/nf/biz/change_ext_conn.py')
-rw-r--r--lcm/lcm/nf/biz/change_ext_conn.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/lcm/lcm/nf/biz/change_ext_conn.py b/lcm/lcm/nf/biz/change_ext_conn.py
index b423a2ec..4cc63a11 100644
--- a/lcm/lcm/nf/biz/change_ext_conn.py
+++ b/lcm/lcm/nf/biz/change_ext_conn.py
@@ -167,7 +167,21 @@ class ChangeExtConn(Thread):
"location_info": {
"vimid": vim_id,
"tenant": tenant
- }
+ },
+ # TODO need confirm
+ "protocol_data": [
+ {
+ "address_data": {
+ "l3_address_data": {
+ "fixed_ip_address":
+ {"ip_address_assignment": True,
+ "floating_ip_activated": True,
+ "ip_address_type": "IPV4",
+ "number_of_ip_address": 1}
+ },
+ },
+ },
+ ],
},
"vl_id": network_id,
"vdu_id": vdu_id,
@@ -254,7 +268,7 @@ class ChangeExtConn(Thread):
def do_create_port_notify(self, res_type, ret):
self.port_id = ignore_case_get(ret, "id")
- port_save("", self.nf_inst_id, ret)
+ port_save(self.job_id, self.nf_inst_id, ret)
def do_notify_op(self, operation_type, status, resid):
if operation_type == "delete":