returnfalse,fmt.Errorf("currently supported ip set hash families are: [%s, %s], %s is not supported",ProtocolFamilyIPV4,ProtocolFamilyIPV6,set.HashFamily)
returnfalse
}
}
}
}
// check set type
// check set type
ifvalid:=validateIPSetType(set.SetType);!valid{
ifvalid:=validateIPSetType(set.SetType);!valid{
returnfalse,fmt.Errorf("currently supported ipset types are: %v, %s is not supported",ValidIPSetTypes,set.SetType)