icds/Dockerfiles/forContainerNet/bootserver/bootstrap_server.py
Abdel-Kader Chabi-Sika-Boni 596a692e2b mise a jour
2020-12-31 16:48:19 +01:00

15 lines
353 B
Python
Executable file

#!/usr/bin/python
from flask import Flask
app = Flask(__name__)
@app.route("/getmyconfig/<string:my_ip>")
def configurations_giver(my_ip):
configs = ""
if my_ip=='10.0.0.3':
configs = '--local_name xxx --remote_ip xxx --remote_name xxx'
return configs
if __name__=='__main__':
app.run(debug=False, host='0.0.0.0', port=5555)