- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for DeleteChain (0.12 sec)
-
pkg/util/iptables/monitor_test.go
} if err := waitForReloads(&reloads, 0); err != nil { t.Errorf("got unexpected reloads: %v", err) } // If we delete all of the chains, it should reload ipt.DeleteChain(TableMangle, canary) ipt.DeleteChain(TableFilter, canary) ipt.DeleteChain(TableNAT, canary) if err := waitForReloads(&reloads, 1); err != nil { t.Errorf("got unexpected number of reloads after flush: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 9.3K bytes - Viewed (0) -
pkg/util/iptables/testing/fake.go
func (f *FakeIPTables) FlushChain(table iptables.Table, chain iptables.Chain) error { if c, _ := f.Dump.GetChain(table, chain); c != nil { c.Rules = nil } return nil } // DeleteChain is part of iptables.Interface func (f *FakeIPTables) DeleteChain(table iptables.Table, chain iptables.Chain) error { t, err := f.Dump.GetTable(table) if err != nil { return err } for i := range t.Chains { if t.Chains[i].Name == chain {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 8.5K bytes - Viewed (0) -
pkg/util/iptables/iptables_test.go
func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, }, } runner := New(fexec, ProtocolIPv4) // Success. err := runner.DeleteChain(TableNAT, Chain("FOOBAR")) if err != nil { t.Errorf("expected success, got %v", err) } if fcmd.CombinedOutputCalls != 2 { t.Errorf("expected 2 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 46.3K bytes - Viewed (0) -
pkg/util/iptables/iptables.go
EnsureChain(table Table, chain Chain) (bool, error) // FlushChain clears the specified chain. If the chain did not exist, return error. FlushChain(table Table, chain Chain) error // DeleteChain deletes the specified chain. If the chain did not exist, return error. DeleteChain(table Table, chain Chain) error // ChainExists tests whether the specified chain exists, returning an error if it // does not, or if it is unable to check.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 28.6K bytes - Viewed (0) -
pkg/proxy/ipvs/proxier.go
logger.Error(err, "Error removing iptables rules in ipvs proxier") encounteredError = true } } } // Remove all of our chains. for _, ch := range iptablesCleanupChains { if err := ipt.DeleteChain(ch.table, ch.chain); err != nil { if !utiliptables.IsNotFoundError(err) { logger.Error(err, "Error removing iptables rules in ipvs proxier") encounteredError = true } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 28 15:51:23 UTC 2024 - 77.7K bytes - Viewed (0)