Skip to content

Commit

Permalink
throw an exception for failed valn assignment, instead of returning N…
Browse files Browse the repository at this point in the history
  • Loading branch information
YufengXin committed Nov 14, 2024
1 parent 3b4ce3b commit 6a92ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdx_pce/topology/temanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ def _reserve_vlan_breakdown(
f"Can't proceed. Rolling back reservations."
)
self.unreserve_vlan(request_id=request_id)
return None
raise TEError(f"Can't find a vlan assignment for: {connection_request}", 410)

ingress_port_id = ingress_port["id"]
egress_port_id = egress_port["id"]
Expand Down

0 comments on commit 6a92ebf

Please sign in to comment.