The ipset KUBE-LOAD-BALANCER-SOURCE-CIDR is not recogized as
a hash set
pull/58/head
Lars Ekman 2018-09-06 11:00:14 +02:00
parent 8e329f1c3c
commit e818b8ffc5
1 changed files with 1 additions and 1 deletions

View File

@ -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.
func (runner *runner) createSet(set *IPSet, ignoreExistErr bool) error {
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,
"family", set.HashFamily,
"hashsize", strconv.Itoa(set.HashSize),