package networking
import "github.com/dotcloud/docker/internal/testutils/networking"
Index ¶
- func FirewalldReload(t *testing.T, d *daemon.Daemon)
- func FirewalldRunning() bool
- func SetFilterForwardPolicies(t *testing.T, policy string)
Functions ¶
func FirewalldReload ¶
FirewalldReload reloads firewalld and waits for the daemon to re-create its rules. It's a no-op if firewalld is not running, and the test fails if the reload does not complete.
func FirewalldRunning ¶
func FirewalldRunning() bool
func SetFilterForwardPolicies ¶
SetFilterForwardPolicies sets the default policy for the FORWARD chain in the filter tables for both IPv4 and IPv6. The original policy is restored using t.Cleanup().
There's only one filter-FORWARD policy, so this won't behave well if used by tests running in parallel in a single network namespace that expect different behaviour.
Source Files ¶
- Version
- v28.1.0+incompatible
- Published
- Apr 16, 2025
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 40 seconds ago –
Tools for package owners.