Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeleteHostRules (0.1 sec)

  1. cni/pkg/nodeagent/server.go

    	if err != nil {
    		return nil, fmt.Errorf("error configuring iptables: %w", err)
    	}
    
    	// Create hostprobe rules now, in the host netns
    	hostIptables.DeleteHostRules()
    
    	if err := hostIptables.CreateHostRulesForHealthChecks(&HostProbeSNATIP, &HostProbeSNATIPV6); err != nil {
    		return nil, fmt.Errorf("error initializing the host rules for health checks: %w", err)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables.go

    		log.Errorf("failed to add host netnamespace iptables rules: %v", err)
    		return err
    	}
    	return nil
    }
    
    func (cfg *IptablesConfigurator) DeleteHostRules() {
    	log.Debug("Attempting to delete hostside iptables rules (if they exist)")
    
    	cfg.executeHostDeleteCommands()
    }
    
    func (cfg *IptablesConfigurator) executeHostDeleteCommands() {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top