Skip to content

Commit e1ba1b2

Browse files
committed
update
Signed-off-by: Hang Yan <[email protected]>
1 parent a575096 commit e1ba1b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/antctl/command_list_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ func TestGetDebugCommands(t *testing.T) {
6565
{
6666
name: "Antctl running against controller mode",
6767
mode: "controller",
68-
expected: [][]string{{"version"}, {"get", "networkpolicy"}, {"get", "appliedtogroup"}, {"get", "addressgroup"}, {"get", "controllerinfo"}, {"supportbundle"}, {"traceflow"}, {"packetcapture"}, {"get", "featuregates"}},
68+
expected: [][]string{{"version"}, {"get", "networkpolicy"}, {"get", "appliedtogroup"}, {"get", "addressgroup"}, {"get", "controllerinfo"}, {"supportbundle"}, {"traceflow"}, {"get", "featuregates"}},
6969
},
7070
{
7171
name: "Antctl running against agent mode",
7272
mode: "agent",
73-
expected: [][]string{{"version"}, {"get", "podmulticaststats"}, {"log-level"}, {"get", "networkpolicy"}, {"get", "appliedtogroup"}, {"get", "addressgroup"}, {"get", "agentinfo"}, {"get", "podinterface"}, {"get", "ovsflows"}, {"trace-packet"}, {"get", "serviceexternalip"}, {"get", "memberlist"}, {"get", "bgppolicy"}, {"get", "bgppeers"}, {"get", "bgproutes"}, {"supportbundle"}, {"traceflow"}, {"packetcapture"}, {"get", "featuregates"}},
73+
expected: [][]string{{"version"}, {"get", "podmulticaststats"}, {"log-level"}, {"get", "networkpolicy"}, {"get", "appliedtogroup"}, {"get", "addressgroup"}, {"get", "agentinfo"}, {"get", "podinterface"}, {"get", "ovsflows"}, {"trace-packet"}, {"get", "serviceexternalip"}, {"get", "memberlist"}, {"get", "bgppolicy"}, {"get", "bgppeers"}, {"get", "bgproutes"}, {"supportbundle"}, {"traceflow"}, {"get", "featuregates"}},
7474
},
7575
{
7676
name: "Antctl running against flow-aggregator mode",

pkg/antctl/raw/packetcapture/command.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var (
4848
getCopier = getPodFile
4949
defaultFS = afero.NewOsFs()
5050
)
51+
5152
var option = &struct {
5253
source string
5354
dest string
@@ -59,11 +60,11 @@ var option = &struct {
5960
}{}
6061

6162
var packetCaptureExample = strings.TrimSpace(`
62-
Start capture packets from pod1 to pod2, both Pods are in Namespace default
63+
Start capturing packets from pod1 to pod2, both Pods are in Namespace default
6364
$ antctl packetcaputre -S pod1 -D pod2
64-
Start capture packets from pod1 in Namespace ns1 to a destination IP
65+
Start capturing packets from pod1 in Namespace ns1 to a destination IP
6566
$ antctl packetcapture -S ns1/pod1 -D 192.168.123.123
66-
Start capture UDP packets from pod1 to pod2, with destination port 1234
67+
Start capturing UDP packets from pod1 to pod2, with destination port 1234
6768
$ antctl packetcapture -S pod1 -D pod2 -f udp,udp_dst=1234
6869
Save the packets file to a specified directory
6970
$ antctl packetcapture -S 192.168.123.123 -D pod2 -f tcp,tcp_dst=80 -o /tmp
@@ -200,7 +201,6 @@ func packetCaptureRunE(cmd *cobra.Command, args []string) error {
200201
}
201202
}
202203
return false, nil
203-
204204
})
205205

206206
if wait.Interrupted(err) {

0 commit comments

Comments
 (0)