projects
/
osm
/
RO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3963a56
)
Fix IP address auto-assignment for VDU at instantiation and scaling
44/9844/1
author
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Wed, 23 Sep 2020 14:33:14 +0000
(14:33 +0000)
committer
tierno
<alfonso.tiernosepulveda@telefonica.com>
Fri, 16 Oct 2020 09:04:51 +0000
(09:04 +0000)
Change-Id: I601e92b7b2becdfcf4357c9c39773f0e2c9b5a9b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
RO/osm_ro/nfvo.py
patch
|
blob
|
history
diff --git
a/RO/osm_ro/nfvo.py
b/RO/osm_ro/nfvo.py
index
29b9dcc
..
3e1f377
100644
(file)
--- a/
RO/osm_ro/nfvo.py
+++ b/
RO/osm_ro/nfvo.py
@@
-4199,7
+4199,7
@@
def instantiate_vnf(mydb, sce_vnf, params, params_out, rollbackList):
i = ip.rfind(".")
if i > 0:
i += 1
- ip = ip[
i:] + str(int(ip[:i
]) + 1)
+ ip = ip[
:i] + str(int(ip[i:
]) + 1)
db_vm_iface_instance["ip_address"] = ip
except:
db_vm_iface_instance["ip_address"] = None
@@
-4921,7
+4921,7
@@
def instance_action(mydb,nfvo_tenant,instance_id, action_dict):
i = ip.rfind(".")
if i > 0:
i += 1
- ip = ip[
i:] + str(int(ip[:i
]) + 1)
+ ip = ip[
:i] + str(int(ip[i:
]) + 1)
iface["ip_address"] = ip
except:
iface["ip_address"] = None