- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for EmptyNlDeps (0.07 sec)
-
cni/pkg/iptables/iptables_test.go
cfg := constructTestConfig() cfg.EnableIPv6 = ipv6 tt.config(cfg) ext := &dep.DependenciesStub{} iptConfigurator, _, _ := NewIptablesConfigurator(cfg, ext, ext, EmptyNlDeps()) err := iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, tt.ingressMode) if err != nil { t.Fatal(err) } compareToGolden(t, ipv6, tt.name, ext.ExecutedAll) })
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 4.1K bytes - Viewed (0) -
cni/pkg/iptables/nldeps.go
return AddLoopbackRoutes(cfg) } func (r *realDeps) DelLoopbackRoutes(cfg *Config) error { return DelLoopbackRoutes(cfg) } type emptyDeps struct{} func EmptyNlDeps() NetlinkDependencies { return &emptyDeps{} } func (r *emptyDeps) AddInpodMarkIPRule(cfg *Config) error { return nil } func (r *emptyDeps) DelInpodMarkIPRule(cfg *Config) error { return nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 1.6K bytes - Viewed (0) -
cni/pkg/iptables/iptables_e2e_test.go
probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164") cfg := &Config{} tt.config(cfg) deps := &dep.RealDependencies{} iptConfigurator, _, _ := NewIptablesConfigurator(cfg, deps, deps, EmptyNlDeps()) assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false)) t.Log("starting cleanup") // Cleanup, should work assert.NoError(t, iptConfigurator.DeleteInpodRules())
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 2.9K bytes - Viewed (0)