Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for DetectIptablesVersion (0.18 sec)

  1. tools/istio-iptables/pkg/dependencies/interface.go

    	RunQuietlyAndIgnore(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string)
    
    	// DetectIptablesVersion consults the available binaries and in-use tables to determine
    	// which iptables variant (legacy, nft, v6, v4) we should use in the current context.
    	DetectIptablesVersion(ipV6 bool) (IptablesVersion, error)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. tools/istio-clean-iptables/pkg/cmd/root.go

    			cfg.FillConfigFromEnvironment()
    			if err := cfg.Validate(); err != nil {
    				return err
    			}
    			ext := NewDependencies(cfg)
    
    			iptVer, err := ext.DetectIptablesVersion(false)
    			if err != nil {
    				return err
    			}
    			ipt6Ver, err := ext.DetectIptablesVersion(true)
    			if err != nil {
    				return err
    			}
    
    			cleaner := NewIptablesCleaner(cfg, &iptVer, &ipt6Ver, ext)
    			cleaner.Run()
    			return nil
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tools/istio-clean-iptables/pkg/cmd/cleanup_test.go

    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			cfg := constructTestConfig()
    			tt.config(cfg)
    
    			ext := &dep.DependenciesStub{}
    			iptStub, _ := ext.DetectIptablesVersion(false)
    			ip6tStub, _ := ext.DetectIptablesVersion(true)
    			cleaner := NewIptablesCleaner(cfg, &iptStub, &ip6tStub, ext)
    
    			cleaner.Run()
    
    			compareToGolden(t, tt.name, ext.ExecutedAll)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. tools/istio-iptables/pkg/dependencies/stub.go

    	s.execute(true /*quietly*/, cmd, iptVer, stdin, args...)
    	_ = s.writeAllToDryRunPath()
    }
    
    func (s *DependenciesStub) DetectIptablesVersion(ipV6 bool) (IptablesVersion, error) {
    	if ipV6 {
    		return IptablesVersion{
    			DetectedBinary:        "ip6tables",
    			DetectedSaveBinary:    "ip6tables-save",
    			DetectedRestoreBinary: "ip6tables-restore",
    		}, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. cni/pkg/iptables/iptables.go

    	//
    	// But that's stunningly unlikely (and would still work either way)
    	iptVer, err := ext.DetectIptablesVersion(false)
    	if err != nil {
    		return nil, err
    	}
    
    	log.Debugf("found iptables binary: %+v", iptVer)
    
    	configurator.iptV = iptVer
    
    	ipt6Ver, err := ext.DetectIptablesVersion(true)
    	if err != nil {
    		return nil, err
    	}
    
    	log.Debugf("found iptables v6 binary: %+v", iptVer)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. tools/istio-iptables/pkg/dependencies/implementation.go

    // 4. Otherwise, see if we have `legacy` binary set, and use that.
    // 5. Otherwise, see if we have `iptables` binary set, and use that (detecting whether it's nft or legacy).
    func (r *RealDependencies) DetectIptablesVersion(ipV6 bool) (IptablesVersion, error) {
    	// Begin detecting
    	//
    	// iptables variants all have ipv6 variants, so decide which set we're looking for
    	var nftBin, legacyBin, plainBin string
    	if ipV6 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 19:54:50 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. tools/istio-iptables/pkg/capture/run.go

    	}
    	log.Infof("Added ::6 address")
    	return nil
    }
    
    func (cfg *IptablesConfigurator) Run() error {
    	iptVer, err := cfg.ext.DetectIptablesVersion(false)
    	if err != nil {
    		return err
    	}
    
    	ipt6Ver, err := cfg.ext.DetectIptablesVersion(true)
    	if err != nil {
    		return err
    	}
    
    	defer func() {
    		// Best effort since we don't know if the commands exist
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 03:53:23 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top