Add Batch API for building and executing batched nftables commands.

This commit is contained in:
2026-04-22 23:34:43 +05:00
parent 3c47e7566b
commit a7ec170096
5 changed files with 135 additions and 0 deletions
+3
View File
@@ -8,6 +8,9 @@ type NFT interface {
// You can execute your raw request.
Command() Command
// ExecuteBatch executes a batch of commands.
ExecuteBatch(batch Batch) error
// Clear clears all rules.
//
// This command is equivalent to: