diff options
author | Smokowski, Steven <steve.smokowski@att.com> | 2020-10-14 19:41:04 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2020-10-14 19:41:05 -0400 |
commit | 0f78e3f6d58a5730a9903bd4d159dad755f0e710 (patch) | |
tree | 3a9a760867ac701565cd9170ad64d6929d292abf | |
parent | 98c50c3184e915945dfe339284fc6dcbd8fdca9f (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
-rw-r--r-- | adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java | 4 |
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) { |