Skip to content

Commit

Permalink
log for DelNetworkReply now differentiates between IPv4 and IPv6 addr…
Browse files Browse the repository at this point in the history
…esses (#2742)

Co-authored-by: Zach Dorame-Barajas <doramebz@amazon.com>
  • Loading branch information
zachdorame and zachdorame authored Jan 5, 2024
1 parent 0253b9b commit 3c20f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ipamd/rpc_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (s *server) AddNetwork(ctx context.Context, in *rpc.AddNetworkRequest) (*rp
ParentIfIndex: int32(trunkENILinkIndex),
}

log.Infof("Send AddNetworkReply: IPv4Addr %s, IPv6Addr: %s, DeviceNumber: %d, err: %v", ipv4Addr, ipv6Addr, deviceNumber, err)
log.Infof("Send AddNetworkReply: IPv4Addr: %s, IPv6Addr: %s, DeviceNumber: %d, err: %v", ipv4Addr, ipv6Addr, deviceNumber, err)
return &resp, nil
}

Expand Down Expand Up @@ -314,7 +314,7 @@ func (s *server) DelNetwork(ctx context.Context, in *rpc.DelNetworkRequest) (*rp
}
}

log.Infof("Send DelNetworkReply: IPv4Addr %s, DeviceNumber: %d, err: %v", ip, deviceNumber, err)
log.Infof("Send DelNetworkReply: IPv4Addr: %s, IPv6Addr: %s, DeviceNumber: %d, err: %v", ipv4Addr, ipv6Addr, deviceNumber, err)

return &rpc.DelNetworkReply{Success: err == nil, IPv4Addr: ipv4Addr, IPv6Addr: ipv6Addr, DeviceNumber: int32(deviceNumber)}, err
}
Expand Down

0 comments on commit 3c20f2b

Please sign in to comment.