Skip to content

Commit

Permalink
using the request endpoints; added current_path in the response
Browse files Browse the repository at this point in the history
  • Loading branch information
YufengXin committed Oct 22, 2024
1 parent 21d8aaf commit 07689d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdx_controller/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def get_connection_status(db, service_id: str):
qos_metrics = {}
scheduling = {}
notifications = {}
request_endpoints = []

request = db.read_from_db("connections", service_id)
if not request:
Expand All @@ -385,6 +386,7 @@ def get_connection_status(db, service_id: str):
qos_metrics = request_dict.get("qos_metrics")
scheduling = request_dict.get("scheduling")
notifications = request_dict.get("notifications")
request_endpoints = request_dict.get("endpoints")

# TODO: we're missing many of the attributes in the response here
# which have been specified in the provisioning spec, such as:
Expand All @@ -397,7 +399,8 @@ def get_connection_status(db, service_id: str):
"service_id": service_id,
"name": name,
"description": description,
"endpoints": endpoints,
"endpoints": request_endpoints,
"current_path": endpoints,
}
if qos_metrics:
response[service_id]["qos_metrics"] = qos_metrics
Expand Down

0 comments on commit 07689d1

Please sign in to comment.