diff options
author | Marco Platania <platania@research.att.com> | 2019-02-08 15:28:06 -0800 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2019-02-08 15:29:05 -0800 |
commit | 4b87029b2ba7daea247ff537f8c52ba5c928d8bd (patch) | |
tree | 5144d524271ee923a86733807165aa7d4d72d2f1 | |
parent | c3bca52168627ffe915f39b1e03e5505a8a68176 (diff) |
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 <platania@research.att.com>
-rw-r--r-- | heatbridge/heatbridge/AAIManager.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |