in src/ab/utils/sae_util.py [0:0]
def bind_slb(app_id, slb_id, port):
list_slb = slb_info(SaeRequest(), slb_id)
if list_slb is None:
return False
node_port = 8001
n_port = ab.get_value("node_port")
if n_port is not None:
node_port = int(n_port)
else:
while True:
if node_port in list_slb:
node_port = node_port + 1
else:
break
if port is None:
port = 80
return bind_slb_to_application(SaeRequest(), app_id, slb_id, node_port, port), node_port