From 1409c2749c3fb04638f2bed3c9f52cba876e1a7a Mon Sep 17 00:00:00 2001 From: David Garcia Date: Wed, 2 Dec 2020 15:47:46 +0100 Subject: [PATCH] Fix bug 1322 Change-Id: I6a5b2ee56d8ac2383d846ed2fedc1aec37b9d798 Signed-off-by: David Garcia --- osm_nbi/instance_topics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 8ae3a45..26bd26a 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -481,8 +481,8 @@ class NsrTopic(BaseTopic): for cp in vnfd.get("ext-cpd", ()): vnf_cp = { "name": cp.get("id"), - "connection-point-id": cp.get("int-cpd").get("cpd"), - "connection-point-vdu-id": cp.get("int-cpd").get("vdu-id"), + "connection-point-id": cp.get("int-cpd", {}).get("cpd"), + "connection-point-vdu-id": cp.get("int-cpd", {}).get("vdu-id"), "id": cp.get("id"), # "ip-address", "mac-address" # filled by LCM # vim-id # TODO it would be nice having a vim port id -- 2.25.1