Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ext (0.14 sec)

  1. cni/pkg/iptables/iptables_test.go

    	cfg := constructTestConfig()
    	tt.config(cfg)
    	ext := &dep.DependenciesStub{}
    	iptConfigurator, _ := NewIptablesConfigurator(cfg, ext, EmptyNlDeps())
    	err := iptConfigurator.CreateInpodRules(&probeSNATipv4)
    	if err != nil {
    		t.Fatal(err)
    	}
    	compareToGolden(t, false, tt.name, ext.ExecutedAll)
    
    	*ext = dep.DependenciesStub{}
    	// run another time to make sure we are idempotent
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables.go

    		EnableIPv6:    c.EnableIPv6,
    		RedirectDNS:   c.RedirectDNS,
    	}
    }
    
    func NewIptablesConfigurator(cfg *Config, ext dep.Dependencies, nlDeps NetlinkDependencies) (*IptablesConfigurator, error) {
    	if cfg == nil {
    		cfg = &Config{
    			RestoreFormat: true,
    		}
    	}
    
    	configurator := &IptablesConfigurator{
    		ext:    ext,
    		nlDeps: nlDeps,
    		cfg:    cfg,
    	}
    
    	// By detecting iptables versions *here* once-for-all we are
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
Back to top