Add "add table" and "add chain" commands
This commit is contained in:
parent
ae9d67eb8a
commit
713fb018fc
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue