Add debug output
This commit is contained in:
parent
c9cd3435a3
commit
9d58822f1a
1 changed files with 3 additions and 2 deletions
5
main.py
5
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"]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue