Commit e49688be98
introduced filters for ephemeral firewall rules
managed by Ironic Inspectors iptables PXE filter.
These new filters cause duplicate entries in the
persisted firewall rules.
sed expression '/-m comment --comment/p' was used
to ensure the ironic-inspector api port is not
accidentally removed. But the expression also
matches several other entries causing duplicates
to be written.
This change enhances the expression to check for
'-m comment --comment' and 'ironic-inspector'.
Related-Bug: #1771128
Change-Id: I6ac397e786f66e33c523edb94613181040c15f19
(cherry picked from commit 4366fa8b14)