Add "add table" and "add chain" commands

develop
jeltz 2 years ago
parent ae9d67eb8a
commit 713fb018fc
Signed by: jeltz
GPG Key ID: 800882B66C0C3326

@ -131,4 +131,7 @@ let compile config =
let compiled =
List.map (fun expr -> Command.AddRule { family; table; chain; expr }) exprs
in
Command.FlushRuleset :: compiled
Command.FlushRuleset
:: Command.AddTable { family; name = table }
:: Command.AddChain { family; table; name = chain }
:: compiled

Loading…
Cancel
Save