Commit 86c74966 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add One2ManyBiProxy to tpf-switchboard

parent 3b39b6b0
......@@ -2,3 +2,4 @@ from proxies.udp_one2onebi import (One2OneBiProxy)
from proxies.udp_mirror import (MirrorProxy)
from proxies.udp_one2manymo import (One2ManyMoProxy)
from proxies.udp_one2manybi import (One2ManyBiProxy)
from proxies.udp_many2manybi import (Many2ManyBiProxy)
......@@ -24,7 +24,7 @@ myproxies = {}
port_range = range(10000, 32768)
baseroute = '/proxies/'
valid_types = ['mirror', 'one2oneBi', 'one2manyMo', 'one2manyBi']
valid_types = ['mirror', 'one2oneBi', 'one2manyMo', 'one2manyBi', 'many2manyBi']
listen_port = 3591
listen_address = '0.0.0.0'
......@@ -103,6 +103,8 @@ def start_proxy():
obj = proxies.MirrorProxy(listen_port=proxydef['port'])
elif proxydef['type'] == 'one2manyBi':
obj = proxies.One2ManyBiProxy(one_port=proxydef['port'], many_port=proxydef['port']+5)
elif proxydef['type'] == 'many2manyBi':
obj = proxies.Many2ManyBiProxy(listen_port=proxydef['port'])
else:
response = {'status': 'Error', 'msg': 'An unknown error occurred'}
return r(json.dumps(response), 422)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment