Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5968

IP's not deleting from ipset from file

    • None
    • None
    • rhel-sst-networking-core
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Release Note Not Required
    • 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

              egarver Eric Garver
              ashhulme Ashley Hulme (Inactive)
              qe-baseos-daemons qe-baseos-daemons
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: