-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
None
-
None
-
None
-
rhel-sst-networking-core
-
ssg_networking
-
None
-
False
-
-
None
-
None
-
None
-
None
-
Release Note Not Required
-
-
Unspecified
-
None
Description of problem:
to remove all ips in ipset within firewalld without deleting firewalld ipset
Steps to Reproduce:
1.start with Ipset with ip records within
firewall-cmd --permanent --ipset=ban-badips-server --get-entries
192.168.0.2
2.firewall-cmd --permanent --ipset=ban-badips-server --get-entries > /testing.txt
3.firewall-cmd --permanent --ipset=ban-badips-server --remove-entries-from-file=/testing.txt
Actual results:
Error: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/firewall/client.py", line 55, in handle_exceptions
return func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/firewall/client.py", line 1621, in setEntries
check_for_overlapping_entries(entries)
File "/usr/lib/python3.6/site-packages/firewall/core/ipset.py", line 379, in check_for_overlapping_entries
prev_network = entries.pop(0)
IndexError: pop from empty list
Expected results:
success
- external trackers