Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
update portid in when create vm
[vfc/gvnfm/vnflcm.git]
/
lcm
/
lcm
/
nf
/
biz
/
common.py
diff --git
a/lcm/lcm/nf/biz/common.py
b/lcm/lcm/nf/biz/common.py
index
212c74c
..
bd8411d
100644
(file)
--- a/
lcm/lcm/nf/biz/common.py
+++ b/
lcm/lcm/nf/biz/common.py
@@
-145,3
+145,9
@@
def vm_save(job_id, nf_inst_id, ret):
is_predefined=ignore_case_get(ret, "returnCode"),
instid=nf_inst_id,
vmid=vm_id)
+ for portid in ignore_case_get(ret, "ports"):
+ PortInstModel.objects.filter(
+ resourceid=portid
+ ).update(
+ vmid=ignore_case_get(ret, "id")
+ )