Skip to content
Snippets Groups Projects
Commit 6c378752 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI - IETF L3VPN Connector:

- GET service now returns a dictionary with the service UUID
parent 20fd29c4
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!172Resolve "(CTTC) Extend gNMI-OpenConfig SBI driver"
......@@ -44,7 +44,7 @@ class L3VPN_Service(Resource):
service_ready_status = ServiceStatusEnum.SERVICESTATUS_ACTIVE
service_status = target.service_status.service_status # pylint: disable=no-member
response = jsonify({})
response = jsonify({'service-id': target.service_id.service_uuid.uuid})
response.status_code = HTTP_OK if service_status == service_ready_status else HTTP_GATEWAYTIMEOUT
except Exception as e: # pylint: disable=broad-except
LOGGER.exception('Something went wrong Retrieving VPN({:s})'.format(str(vpn_id)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment