Open bleggett opened 4 months ago
Manually create an ipset named my-special-ipset
my-special-ipset
Run the following code:
err := netlink.IpsetCreate("my-special-ipset, "hash:ip", netlink.IpsetCreateOptions{Comments: true, Replace: true, Family: family}) log.Debugf("IPSET ERROR IS: %s", err) if err == nl.IPSetError(nl.IPSET_ERR_EXIST) { return nil }
IPSET ERROR IS: file exists
I suspect this is the result of an early return that basically skips error mapping: https://github.com/vishvananda/netlink/blob/d13535d71ed3e430e26c7538cd6266d026b26f54/ipset_linux.go#L410
Manually create an ipset named
my-special-ipset
Run the following code:
IPSET ERROR IS: file exists