Skip to content

Commit fad0d56

Browse files
committed
plugin linux_netfilter: add handle (nf-id) to rule
1 parent 3454c72 commit fad0d56

File tree

1 file changed

+3
-0
lines changed
  • src/firewall_test/plugins/translate/netfilter

1 file changed

+3
-0
lines changed

src/firewall_test/plugins/translate/netfilter/elements.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,9 @@ def __repr__(self) -> str:
441441
if self.comment is not None:
442442
cmt = f' "{self.comment}"'
443443

444+
if self.handle is not None:
445+
cmt += f' (handle {self.handle})'
446+
444447
matches = str(self.matches)
445448
if len(matches) > 500:
446449
matches = matches[:500] + '...'

0 commit comments

Comments
 (0)