diff --git a/sdx_controller/handlers/connection_handler.py b/sdx_controller/handlers/connection_handler.py index 034bc1a..66244c9 100644 --- a/sdx_controller/handlers/connection_handler.py +++ b/sdx_controller/handlers/connection_handler.py @@ -272,7 +272,11 @@ 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_value_pair_to_db( + "connections", connection["id"], json.dumps(connection) + ) def get_archived_connections(self, service_id: str): historical_connections = self.db_instance.read_from_db(