diff options
author | DR695H <dr695h@att.com> | 2018-09-06 17:48:53 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2018-09-06 17:59:33 -0400 |
commit | 7566254a056d51402ec0033ddf8620efc5ecfdc3 (patch) | |
tree | ccab2f18d919a8d2f13ec3ce8138c343b11c5dd0 | |
parent | 6318021e56cfc430c00a9cd973dc585f9287f95f (diff) |
adding in vfmodule id to heatbridge
this allows coorelation to be done on the more specific vfmodule id not
just the vnfid
Change-Id: I6f90903ac5efedea0c9c3954cf3316f3a35f5cf1
Issue-ID: TEST-116
Signed-off-by: DR695H <dr695h@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 50d2d1b..417db7a 100644 --- a/heatbridge/heatbridge/AAIManager.py +++ b/heatbridge/heatbridge/AAIManager.py @@ -52,6 +52,10 @@ class AAIManager: data = self.__create_relationship_data("generic-vnf", "vnf-id", server_info_dict['metadata']['vnf_id']); list = self.__create_relationship_data_list(data); relations.append(self.__create_relationship("generic-vnf", list)); + if self.__exists(server_info_dict['metadata'], 'vf_module_id'): + data = self.__create_relationship_data("vf-module", "vf-module-id", server_info_dict['metadata']['vf_module_id']); + list = self.__create_relationship_data_list(data); + relations.append(self.__create_relationship("vf-module", list)); if self.__exists(server_info_dict['flavor'], 'id'): data = self.__create_relationship_data("flavor", "flavor-id", server_info_dict['flavor']['id']); data2 = self.__create_relationship_data("cloud-region", "cloud-owner", self.openstack_context.owner); |