summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-11-14 19:41:02 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2023-11-14 19:41:02 +0100
commit2caac53749dece14825991ffcc267e913091e842 (patch)
tree364aeb81269683152d8ae24ebc490d048a2b4a7e
parent0cace145fed5c0e64f9fbf4295be5264582517e8 (diff)
downloadprolog-firewall-2caac53749dece14825991ffcc267e913091e842.tar.gz
prolog-firewall-2caac53749dece14825991ffcc267e913091e842.tar.bz2
prolog-firewall-2caac53749dece14825991ffcc267e913091e842.tar.xz
prolog-firewall-2caac53749dece14825991ffcc267e913091e842.zip
wip
-rw-r--r--6/main.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/6/main.pl b/6/main.pl
index a65d0b6..ecfc295 100644
--- a/6/main.pl
+++ b/6/main.pl
@@ -1,6 +1,7 @@
:- dynamic fw_rule/2.
-:- use_module(bgp).
+:- use_module(bgp, [
+ create_firewall/1]).
print_warnings([]).
print_warnings([W|Ws]) :- format("Warning: ~w~n", [W]), print_warnings(Ws).
@@ -17,5 +18,6 @@ print_warnings :-
).
main :-
+ bgp:create_firewall(),
bgp:bird_config(BirdDict),
yaml_write(current_output, BirdDict).