Skip to content

Commit

Permalink
tests: add ext.config.firewall.iptables-legacy test
Browse files Browse the repository at this point in the history
Let's confirm for now that we're using iptables-legacy by default
until we switch to defaulting to iptables-nft.

See coreos/fedora-coreos-tracker#676
  • Loading branch information
dustymabe authored and HuijingHei committed Oct 10, 2023
1 parent 2efaa12 commit 5a8e609
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/kola/firewall/iptables-legacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# kola: { "exclusive": false }
set -xeuo pipefail

ok() {
echo "ok" "$@"
}

fatal() {
echo "$@" >&2
exit 1
}

# Make sure we're still on legacy iptables for now
# https://github.com/coreos/fedora-coreos-tracker/issues/676#issuecomment-928028451
if ! iptables --version | grep legacy; then
iptables --version # output for logs
fatal "iptables version is not legacy"
fi
ok "iptables still in legacy mode"

0 comments on commit 5a8e609

Please sign in to comment.