Skip to content
Snippets Groups Projects
Commit 9c366d8b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component:

- Renamed symbol `_nbi_app` to `nbi_app`
parent ebfe46cf
No related branches found
No related tags found
3 merge requests!359Release TeraFlowSDN 5.0,!322Resolve "(CTTC) Update NBI WebSocket endpoints to Flask-SocketIO and use gunicorn",!286Resolve "(CTTC) Implement integration test between E2E-IP-Optical SDN Controllers"
...@@ -90,20 +90,20 @@ def configure_nbi( ...@@ -90,20 +90,20 @@ def configure_nbi(
#metrics_port = get_metrics_port() #metrics_port = get_metrics_port()
#start_http_server(metrics_port) #start_http_server(metrics_port)
nbi_app = NbiApplication(base_url=base_url) _nbi_app = NbiApplication(base_url=base_url)
for register_method in REGISTER_METHODS: for register_method in REGISTER_METHODS:
register_method(nbi_app) register_method(_nbi_app)
nbi_app.dump_configuration() _nbi_app.dump_configuration()
return nbi_app return _nbi_app
_nbi_app = configure_nbi(base_url=BASE_URL) nbi_app = configure_nbi(base_url=BASE_URL)
if __name__ == '__main__': if __name__ == '__main__':
# Only used to run it locally during development stage; # Only used to run it locally during development stage;
# otherwise, app is directly launched by gunicorn. # otherwise, app is directly launched by gunicorn.
_nbi_app.run_standalone( nbi_app.run_standalone(
bind_address=BIND_ADDRESS, bind_port=BIND_PORT bind_address=BIND_ADDRESS, bind_port=BIND_PORT
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment