Skip to content

Commit

Permalink
id or port_id?
Browse files Browse the repository at this point in the history
  • Loading branch information
YufengXin committed Oct 22, 2024
1 parent 2577a62 commit 7abe687
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdx_controller/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,12 @@ def get_connection_status(db, service_id: str):
request_endpoints = request_dict.get("endpoints")
request_uni_a = request_endpoints[0]
request_uni_a_id = request_uni_a.get("port_id")
if request_uni_a_id is None:
request_uni_a_id = request_uni_a.get("id")
request_uni_z = request_endpoints[1]
request_uni_z_id = request_uni_z.get("port_id")
if request_uni_z_id is None:
request_uni_z_id = request_uni_z.get("id")
else: # spec version 1.0.0
request_uni_a = request_dict.get("ingress_port")
request_uni_a_id = request_uni_a.get("id")
Expand Down

0 comments on commit 7abe687

Please sign in to comment.