Skip to content

Commit

Permalink
Use te_manager delete_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
congwang09 committed Oct 4, 2024
1 parent df7f6f4 commit f671504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [
"pika >= 1.2.0",
"dataset",
"pymongo > 3.0",
"sdx-pce @ git+https://github.com/atlanticwave-sdx/[email protected].dev1",
"sdx-pce @ git+https://github.com/atlanticwave-sdx/[email protected].dev2",
]

[project.optional-dependencies]
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 @@ -202,7 +202,7 @@ def archive_connection(self, service_id) -> None:
logger.debug(f"Archived connection: {service_id}")

def remove_connection(self, te_manager, service_id) -> Tuple[str, int]:
te_manager.unreserve_vlan(service_id)
te_manager.delete_connection(service_id)
connection_request = self.db_instance.read_from_db("connections", service_id)
if not connection_request:
return "Did not find connection request, cannot remove connection", 404
Expand Down

0 comments on commit f671504

Please sign in to comment.