mirror of https://github.com/k3s-io/k3s
Merge pull request #68344 from Nordix/nordix-dev
Include all used hash types in compare when creating ipsetspull/58/head
commit
30bf07a8bc
|
@ -286,7 +286,7 @@ func (runner *runner) CreateSet(set *IPSet, ignoreExistErr bool) error {
|
||||||
// otherwise raised when the same set (setname and create parameters are identical) already exists.
|
// otherwise raised when the same set (setname and create parameters are identical) already exists.
|
||||||
func (runner *runner) createSet(set *IPSet, ignoreExistErr bool) error {
|
func (runner *runner) createSet(set *IPSet, ignoreExistErr bool) error {
|
||||||
args := []string{"create", set.Name, string(set.SetType)}
|
args := []string{"create", set.Name, string(set.SetType)}
|
||||||
if set.SetType == HashIPPortIP || set.SetType == HashIPPort {
|
if set.SetType == HashIPPortIP || set.SetType == HashIPPort || set.SetType == HashIPPortNet {
|
||||||
args = append(args,
|
args = append(args,
|
||||||
"family", set.HashFamily,
|
"family", set.HashFamily,
|
||||||
"hashsize", strconv.Itoa(set.HashSize),
|
"hashsize", strconv.Itoa(set.HashSize),
|
||||||
|
|
Loading…
Reference in New Issue