From a253c93fd1c8ca230fb740cfa53deb6743a2f616 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 28 Aug 2020 00:13:11 +0530 Subject: [PATCH] [2.10] iptables: Add a note about ipv6-icmp (#71010) ipv6-icmp and icmpv6 are valid protocols and adding note about it in protocol parameter. Fixes: #70905 Signed-off-by: Abhijeet Kasurde (cherry picked from commit e139739ab36d7818840025022228b781a92f9bfd) --- changelogs/fragments/70905_iptables_ipv6.yml | 2 ++ lib/ansible/modules/iptables.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/70905_iptables_ipv6.yml diff --git a/changelogs/fragments/70905_iptables_ipv6.yml b/changelogs/fragments/70905_iptables_ipv6.yml new file mode 100644 index 00000000000..06425af1a5f --- /dev/null +++ b/changelogs/fragments/70905_iptables_ipv6.yml @@ -0,0 +1,2 @@ +minor_changes: +- iptables - add a note about ipv6-icmp in protocol parameter (https://github.com/ansible/ansible/issues/70905). diff --git a/lib/ansible/modules/iptables.py b/lib/ansible/modules/iptables.py index 7ec22cfd884..01741c88fbd 100644 --- a/lib/ansible/modules/iptables.py +++ b/lib/ansible/modules/iptables.py @@ -72,8 +72,8 @@ options: protocol: description: - The protocol of the rule or of the packet to check. - - The specified protocol can be one of C(tcp), C(udp), C(udplite), C(icmp), C(esp), - C(ah), C(sctp) or the special keyword C(all), or it can be a numeric value, + - The specified protocol can be one of C(tcp), C(udp), C(udplite), C(icmp), C(ipv6-icmp) or C(icmpv6), + C(esp), C(ah), C(sctp) or the special keyword C(all), or it can be a numeric value, representing one of these protocols or a different one. - A protocol name from I(/etc/protocols) is also allowed. - A C(!) argument before the protocol inverts the test.