Skip to content

Commit 7416cf3

Browse files
committed
add flag to send icmpv6 types to nftables
add changelog entry for 67882 newline at the end of changelog
1 parent 9d10d69 commit 7416cf3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changelog/67882.fixed.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Added support for `icmpv6-type` to salt.modules.nftables

salt/modules/nftables.py

+4
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ def build_rule(
156156
rule += "icmp type {{ {0} }} ".format(kwargs["icmp-type"])
157157
del kwargs["icmp-type"]
158158

159+
if "icmpv6-type" in kwargs:
160+
rule += "icmpv6 type {{ {0} }} ".format(kwargs["icmpv6-type"])
161+
del kwargs["icmpv6-type"]
162+
159163
if "pkttype" in kwargs:
160164
rule += "meta pkttype {{ {0} }} ".format(kwargs["pkttype"])
161165
del kwargs["pkttype"]

0 commit comments

Comments
 (0)