Skip to content

Commit f742c3e

Browse files
committed
DEBUG: check if br_netfilter is present
1 parent f23b09f commit f742c3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/nerdctl/network/network_create_linux_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ func TestNetworkCreateICC(t *testing.T) {
190190
helpers.Anyhow("network", "rm", data.Identifier())
191191
},
192192
Command: func(data test.Data, helpers test.Helpers) test.TestableCommand {
193-
// DEBUG
194-
iptablesSave := "iptables-save | grep CNI-ISOLATION || true"
195-
helpers.Custom("sh", "-ec", iptablesSave).Run(&test.Expected{})
193+
// DEBUG: Check br_netfilter module status
194+
helpers.Custom("sh", "-ec", "lsmod | grep br_netfilter || echo 'br_netfilter not loaded'").Run(&test.Expected{})
195+
helpers.Custom("sh", "-ec", "cat /proc/sys/net/bridge/bridge-nf-call-iptables 2>/dev/null || echo 'bridge-nf-call-iptables not available'").Run(&test.Expected{})
196+
helpers.Custom("sh", "-ec", "ls /proc/sys/net/bridge/ 2>/dev/null || echo 'bridge sysctl not available'").Run(&test.Expected{})
196197
// Try to ping the other container in the same network
197198
// This should fail when ICC is disabled
198199
return helpers.Command("run", "--rm", "--net", data.Identifier(),

0 commit comments

Comments
 (0)