1
votes

I'm currently using this SoftLayer API call to retrieve ISCSI target IP.

client['Network_Storage'].getNetworkConnectionDetails(id=iscsi_id)

However, this calls only return one IP but we need both IPs to configure multi path.

Please advice on the correct API to retrieve both IPs to configure MPIO.

1

1 Answers

0
votes

For that you need to use the same method, but changing the iscsi_id with the iscsi_id of the replica.

try this:

objectMask=mask[serviceResourceBackendIpAddress,replicationPartners[serviceResourceBackendIpAddress],replicatingLuns[serviceResourceBackendIpAddress]]
client['Network_Storage'].getObject(id=iscsi_id,mask=objectMask)

that objectMask will return the replica and the IP