Skip to content

Commit

Permalink
Add connection after failure handling
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Nov 8, 2024
1 parent 18174c5 commit f26f94b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdx_controller/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ def handle_link_failure(self, te_manager, failed_links):
del link_connections_dict[simple_link][index]
logger.debug("Removed connection:")
logger.debug(connection)
self.place_connection(te_manager, connection)
_reason, code = self.place_connection(te_manager, connection)
if code // 100 == 2:
self.db_instance.add_key("connections", connection["id"], json.dumps(connection))

def get_archived_connections(self, service_id: str):
historical_connections = self.db_instance.read_from_db(
Expand Down

0 comments on commit f26f94b

Please sign in to comment.