Skip to content

Commit

Permalink
improve log dumper
Browse files Browse the repository at this point in the history
Change-Id: If9bf19bda500542288cc011fa2d5f5c4ba891d21
  • Loading branch information
aojea committed Jan 3, 2025
1 parent f922566 commit dbccb21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/dump/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,13 @@ func (n *logDumperNode) dump(ctx context.Context) []error {
if err := n.shellToFile(ctx, "sudo iptables -t filter --list-rules", filepath.Join(n.dir, "iptables-filter.log")); err != nil {
errors = append(errors, err)
}
if err := n.shellToFile(ctx, "ip route", filepath.Join(n.dir, "ip-routes.log")); err != nil {
if err := n.shellToFile(ctx, "sudo nft list ruleset", filepath.Join(n.dir, "nftables-ruleset.log")); err != nil {
errors = append(errors, err)
}
if err := n.shellToFile(ctx, "ip route show table all", filepath.Join(n.dir, "ip-routes.log")); err != nil {
errors = append(errors, err)
}
if err := n.shellToFile(ctx, "ip rule list", filepath.Join(n.dir, "ip-rules.log")); err != nil {
errors = append(errors, err)
}

Expand Down

0 comments on commit dbccb21

Please sign in to comment.