From 9d58822f1a113decc0defe4a4e5e3b7c0071a005 Mon Sep 17 00:00:00 2001 From: Nick Guy Date: Sun, 2 Mar 2025 15:05:50 +0000 Subject: [PATCH] Add debug output --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a348c6a..d8528f7 100644 --- a/main.py +++ b/main.py @@ -69,9 +69,10 @@ def apply_port_changes(): label = "Allocation " + str(alloc["id"]) + " for " + node_internal_name if alloc["id"] in allocation_server_lookup.keys(): svr = allocation_server_lookup[alloc["id"]] - if "pf_exclude" in svr["description"]: - continue label = svr["name"] + "(" + svr["identifier"] + ") allocation" + if "pf_exclude" in svr["description"]: + print(f"Excluding allocation \"{label}\" from forwarding, found \"pf_exclude\" in the description") + continue rules.append(create_rule(label, node_internal_ip, alloc["port"]))