Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDX message when no topology is available yet #319

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdx_controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def create_app(run_listener: bool = True):
threads, which is when run_listener param might be useful.
"""
if LOG_FILE:
logging.basicConfig(filename=LOG_FILE, level=logging.INFO)
logging.basicConfig(filename=LOG_FILE, level=logging.DEBUG)
else:
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)

app = connexion.App(__name__, specification_dir="./swagger/")
app.app.json_encoder = encoder.JSONEncoder
Expand Down
2 changes: 1 addition & 1 deletion sdx_controller/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def place_connection(

graph = te_manager.generate_graph_te()
if graph is None:
return "Could not generate a graph", 424
return "No SDX topology found", 424

traffic_matrix = te_manager.generate_traffic_matrix(
connection_request=connection_request
Expand Down