Skip to content

Commit

Permalink
Updating filter for nvme target port
Browse files Browse the repository at this point in the history
  • Loading branch information
nidtara committed Jun 3, 2024
1 parent c16aa7b commit 6a04eda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,18 +386,18 @@ func (c *Client) GetNVMeTCPTargets(ctx context.Context, symID string) ([]NVMeTCP
ports, err := c.GetPortList(ctx, symID, d, "type=OSHostAndRDF")
if err != nil {
// Ignore the error and continue
log.Errorf("Failed to get ports of type GigE for director: %s. Error: %s",
log.Errorf("Failed to get ports of type OSHost for director: %s. Error: %s",
d, err.Error())
continue
}
if len(ports.SymmetrixPortKey) > 0 {
// This is a director with ISCSI port(s)
// Query for iscsi_targets
virtualPorts, err := c.GetPortList(ctx, symID, d, "iscsi_target=true")
virtualPorts, err := c.GetPortList(ctx, symID, d, "nvmetcp_endpoint=true")
if err != nil {
return []NVMeTCPTarget{}, err
}
// we have a list of virtual director ports which have ISCSI targets
// we have a list of virtual director ports which have NVMeTCP endpoints
// and portal IPs associated with it
for _, vp := range virtualPorts.SymmetrixPortKey {
port, err := c.GetPort(ctx, symID, vp.DirectorID, vp.PortID)
Expand Down

0 comments on commit 6a04eda

Please sign in to comment.