Commit 31844d03 authored by Sigmund Augdal's avatar Sigmund Augdal

Fix previous fix

parent c64d6860
......@@ -203,7 +203,7 @@ class Generator(object):
setname_net = self.ip_cidr_groups[group_id]
self.add_ipset_net(setname_net, rule["source_cidr"])
else:
source_cidr = ipaddress.ip_network(rule["source_cidr"])
source_cidr = ipaddress.ip_network(rule["source_cidr"]).with_prefixlen
self.add_ipset_member(RULES_FROM_CIDR, member,
rule["protocol"], rule.get("destination_port", None),
source_cidr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment