Add ability to exclude servers from port-forwarding
This commit is contained in:
parent
ca5d03676a
commit
ed2d89e5ec
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -69,6 +69,8 @@ def apply_port_changes():
|
||||||
label = "Allocation " + str(alloc["id"]) + " for " + node_internal_name
|
label = "Allocation " + str(alloc["id"]) + " for " + node_internal_name
|
||||||
if alloc["id"] in allocation_server_lookup.keys():
|
if alloc["id"] in allocation_server_lookup.keys():
|
||||||
svr = allocation_server_lookup[alloc["id"]]
|
svr = allocation_server_lookup[alloc["id"]]
|
||||||
|
if "pf_exclude" in svr.description:
|
||||||
|
continue
|
||||||
label = svr["name"] + "(" + svr["identifier"] + ") allocation"
|
label = svr["name"] + "(" + svr["identifier"] + ") allocation"
|
||||||
|
|
||||||
rules.append(create_rule(label, node_internal_ip, alloc["port"]))
|
rules.append(create_rule(label, node_internal_ip, alloc["port"]))
|
||||||
|
|
Loading…
Reference in a new issue