summaryrefslogtreecommitdiffstats
path: root/adapters/mso-openstack-adapters
diff options
context:
space:
mode:
authorSmokowski, Steven <steve.smokowski@att.com>2020-10-14 19:41:04 -0400
committerBenjamin, Max (mb388a) <mb388a@att.com>2020-10-14 19:41:05 -0400
commit0f78e3f6d58a5730a9903bd4d159dad755f0e710 (patch)
tree3a9a760867ac701565cd9170ad64d6929d292abf /adapters/mso-openstack-adapters
parent98c50c3184e915945dfe339284fc6dcbd8fdca9f (diff)
Update to use fqdn of server to query aai
Update to use fqdn of server to query aai Issue-ID: SO-3303 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I624e3c42e8d0254b0bd490af9a7ca6572564875e
Diffstat (limited to 'adapters/mso-openstack-adapters')
-rw-r--r--adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java
index 5cb870e0d7..6a62a5de61 100644
--- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java
+++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java
@@ -592,7 +592,9 @@ public class HeatBridgeImpl implements HeatBridgeApi {
boolean relationshipExist = sriovVfHasSriovPfRelationship(sriovVfUri);
- String pserverHostName = port.getHostId();
+
+ Server server = getOpenstackServerById(port.getDeviceId());
+ String pserverHostName = server.getHypervisorHostname();
lIf.setInterfaceDescription("Attached to SR-IOV port: " + pserverHostName);
if (!relationshipExist) {