@@ -27,20 +27,13 @@ pods, processes, and DNS queries. Reports must be enabled with 'replicated netwo
2727Output formats:
2828 - Default: Full event details in JSON format
2929 - --summary: Aggregated statistics with top domains and destinations
30- - --watch: Continuous stream of new events in JSON Lines format
31-
32- Filtering:
33- - --show-external-only: Show only external network traffic (default: true)
34- Set to false to include internal cluster traffic` ,
30+ - --watch: Continuous stream of new events in JSON Lines format` ,
3531 Example : `# Get full network traffic report (external traffic only)
3632replicated network report <network-id>
3733
3834# Get aggregated summary with statistics. Only available for networks that have been terminated.
3935replicated network report <network-id> --summary
4036
41- # Include internal cluster traffic in the report
42- replicated network report <network-id> --show-external-only=false
43-
4437# Watch for new network events in real-time
4538replicated network report <network-id> --watch` ,
4639 RunE : r .getNetworkReport ,
@@ -54,7 +47,6 @@ replicated network report <network-id> --watch`,
5447
5548 cmd .Flags ().BoolVarP (& r .args .networkReportWatch , "watch" , "w" , false , "Watch for new network events in real-time (polls every 2 seconds)" )
5649 cmd .Flags ().BoolVar (& r .args .networkReportSummary , "summary" , false , "Get aggregated report summary with statistics instead of individual events" )
57- cmd .Flags ().BoolVar (& r .args .networkReportShowExternalOnly , "show-external-only" , true , "Show only external network traffic" )
5850
5951 return cmd
6052}
@@ -85,7 +77,7 @@ func (r *runners) getNetworkReport(cmd *cobra.Command, args []string) error {
8577}
8678
8779func (r * runners ) getNetworkReportEvents () error {
88- report , err := r .kotsAPI .GetNetworkReport (r .args .networkReportID , r . args . networkReportShowExternalOnly )
80+ report , err := r .kotsAPI .GetNetworkReport (r .args .networkReportID )
8981 if errors .Cause (err ) == platformclient .ErrForbidden {
9082 return ErrCompatibilityMatrixTermsNotAccepted
9183 } else if err != nil {
@@ -119,9 +111,9 @@ func (r *runners) getNetworkReportEvents() error {
119111 for range time .Tick (2 * time .Second ) {
120112 var newReport * types.NetworkReport
121113 if lastEventTime != nil {
122- newReport , err = r .kotsAPI .GetNetworkReportAfter (r .args .networkReportID , lastEventTime , r . args . networkReportShowExternalOnly )
114+ newReport , err = r .kotsAPI .GetNetworkReportAfter (r .args .networkReportID , lastEventTime )
123115 } else {
124- newReport , err = r .kotsAPI .GetNetworkReport (r .args .networkReportID , r . args . networkReportShowExternalOnly )
116+ newReport , err = r .kotsAPI .GetNetworkReport (r .args .networkReportID )
125117 }
126118
127119 if err != nil {
@@ -152,7 +144,7 @@ func (r *runners) getNetworkReportSummary(ctx context.Context) error {
152144 return fmt .Errorf ("cannot use watch and summary flags together" )
153145 }
154146
155- summary , err := r .kotsAPI .GetNetworkReportSummary (ctx , r .args .networkReportID , r . args . networkReportShowExternalOnly )
147+ summary , err := r .kotsAPI .GetNetworkReportSummary (ctx , r .args .networkReportID )
156148 if errors .Cause (err ) == platformclient .ErrForbidden {
157149 return ErrCompatibilityMatrixTermsNotAccepted
158150 } else if errors .Cause (err ) == platformclient .ErrNotFound {
0 commit comments