Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for iptablesRestoreCommand (0.21 sec)

  1. pkg/util/iptables/iptables_test.go

    		{"iptablesCommand", ProtocolIPv6, cmdIP6Tables},
    		{"iptablesSaveCommand", ProtocolIPv4, cmdIPTablesSave},
    		{"iptablesSaveCommand", ProtocolIPv6, cmdIP6TablesSave},
    		{"iptablesRestoreCommand", ProtocolIPv4, cmdIPTablesRestore},
    		{"iptablesRestoreCommand", ProtocolIPv6, cmdIP6TablesRestore},
    	}
    	for _, testCase := range testCases {
    		var cmd string
    		switch testCase.funcName {
    		case "iptablesCommand":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
  2. pkg/util/iptables/iptables.go

    			}
    		}(locker)
    	}
    
    	// run the command and return the output or an error including the output and error
    	fullArgs := append(runner.restoreWaitFlag, args...)
    	iptablesRestoreCmd := iptablesRestoreCommand(runner.protocol)
    	klog.V(4).InfoS("Running", "command", iptablesRestoreCmd, "arguments", fullArgs)
    	cmd := runner.exec.Command(iptablesRestoreCmd, fullArgs...)
    	cmd.SetStdin(bytes.NewBuffer(data))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
Back to top