summaryrefslogtreecommitdiff
path: root/7/bgp.pl
diff options
context:
space:
mode:
Diffstat (limited to '7/bgp.pl')
-rw-r--r--7/bgp.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/7/bgp.pl b/7/bgp.pl
index 95b8f58..c4843d0 100644
--- a/7/bgp.pl
+++ b/7/bgp.pl
@@ -97,7 +97,7 @@ create_firewall :-
maplist(assert_fw, Goals).
assert_fw(fw(Host, Attrs)) :-
- put_assoc("from", Attrs, bgp, Attrs2),
+ put_assoc(from, Attrs, bgp, Attrs2),
R = firewall:fw_rule(Host, Attrs2),
format("~w", [R]),nl,
asserta(R).
@@ -108,4 +108,4 @@ fw(Host, Attr) :-
hosts:host_config(Remote, RemoteConfig),
get_assoc(ip, RemoteConfig, Src),
get_assoc(ip, HostConfig, Dst),
- utils:to_assoc({src:Src, dst:Dst, family:ip6}, Attr).
+ utils:to_assoc({src:Src, dst:Dst, family:ip6, port: 179}, Attr).