pyinfra
pyinfra copied to clipboard
iptables ignores "destination=" and "not_destination" arguments
Describe the bug
iptables ignores "destination=" and "not_destination" arguments when execution the operation.
To Reproduce
iptables.rule(chain="FORWARD", jump="ACCEPT", destination="192.168.1.100")
- Operation code & usage: pyinfra: v2.6.2, but also present in master
- Target system information: Ubuntu 22.04
Expected behavior
Honor the "destination=" and "not_destination" arguments
Meta
The code in pyinfra/operation/iptables.py, line 266+ does not contain any instructions to honor the "destination" / "not_destination" arguments.
pls see https://github.com/Fizzadar/pyinfra/blob/5e87a0e3e71d58a9df906337e096e00681ecc371/pyinfra/operations/iptables.py#L266