projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implementation of vdu:interface:mgmt-interface for getting vdu ip address
[osm/RO.git]
/
osm_ro
/
nfvo.py
diff --git
a/osm_ro/nfvo.py
b/osm_ro/nfvo.py
index
343685d
..
0241323
100644
(file)
--- a/
osm_ro/nfvo.py
+++ b/
osm_ro/nfvo.py
@@
-1086,6
+1086,9
@@
def new_vnfd_v3(mydb, tenant_id, vnf_descriptor):
vnfd_id, vdu_id, iface.get("virtual-interface").get("type")),
HTTP_Bad_Request)
vnfd_id, vdu_id, iface.get("virtual-interface").get("type")),
HTTP_Bad_Request)
+ if iface.get("mgmt-interface"):
+ db_interface["type"] = "mgmt"
+
if iface.get("external-connection-point-ref"):
try:
cp = vnfd.get("connection-point")[iface.get("external-connection-point-ref")]
if iface.get("external-connection-point-ref"):
try:
cp = vnfd.get("connection-point")[iface.get("external-connection-point-ref")]