Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cli/cmd/network_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Output formats:
Example: `# Get full network traffic report
replicated network report <network-id>

# Get aggregated summary with statistics
# Get aggregated summary with statistics. Only available for networks that have been terminated.
replicated network report <network-id> --summary

# Watch for new network events in real-time
Expand Down Expand Up @@ -147,6 +147,8 @@ func (r *runners) getNetworkReportSummary(ctx context.Context) error {
summary, err := r.kotsAPI.GetNetworkReportSummary(ctx, r.args.networkReportID)
if errors.Cause(err) == platformclient.ErrForbidden {
return ErrCompatibilityMatrixTermsNotAccepted
} else if errors.Cause(err) == platformclient.ErrNotFound {
return fmt.Errorf("network report summary not found for network %s, network must be terminated and events must have been porcessed", r.args.networkReportID)
} else if err != nil {
return errors.Wrap(err, "get network report summary")
}
Expand Down