From 4b87029b2ba7daea247ff537f8c52ba5c928d8bd Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Fri, 8 Feb 2019 15:28:06 -0800 Subject: Modify AAI manager to create VNFC - Add a relation to a VNFC as part of vServer put Change-Id: I9168e68c8de7d011f905ad06ed0ac2607efca9c9 Issue-ID: TEST-137 Signed-off-by: Marco Platania --- heatbridge/heatbridge/AAIManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/heatbridge/heatbridge/AAIManager.py b/heatbridge/heatbridge/AAIManager.py index ed5626a..057a155 100644 --- a/heatbridge/heatbridge/AAIManager.py +++ b/heatbridge/heatbridge/AAIManager.py @@ -69,6 +69,10 @@ class AAIManager: data3 = self.__create_relationship_data("cloud-region", "cloud-region-id", self.openstack_context.region); list = self.__create_relationship_data_list(data, data2, data3); relations.append(self.__create_relationship("image", list)); + #Add a relation to VNFC + data = self.__create_relationship_data("vnfc", "vnfc-name", server_info_dict['name']); + list = self.__create_relationship_data_list(data); + relations.append(self.__create_relationship("vnfc", list)); body['relationship-list'] = self.__create_relationship_list(relations); return put -- cgit 1.2.3-korg