Skip to content
Snippets Groups Projects
Commit a65301c9 authored by Shayan Hajipour's avatar Shayan Hajipour
Browse files

comments added to ietf slice driver

parent aa6b1af6
No related branches found
No related tags found
1 merge request!305Resolve "(CTTC) Driver required to interact with IETF Slice Compliant Controller"
......@@ -47,6 +47,7 @@ class TfsApiClient:
url = self._slice_url + ":network-slice-services"
try:
requests.post(url, json=slice_data, headers=HEADERS)
LOGGER.info(f"IETF Slice Post to {url}: {slice_data}")
except requests.exceptions.ConnectionError:
raise Exception("faild to send post request to TFS IETF Slice NBI")
......@@ -62,6 +63,7 @@ class TfsApiClient:
)
try:
requests.put(url, json=updated_connection_group_data, headers=HEADERS)
LOGGER.info(f"IETF Slice Put to {url}: {updated_connection_group_data}")
except requests.exceptions.ConnectionError:
raise Exception("faild to send update request to TFS IETF Slice NBI")
......@@ -69,5 +71,6 @@ class TfsApiClient:
url = self._slice_url + f":network-slice-services/slice-service={slice_name}"
try:
requests.delete(url)
LOGGER.info(f"IETF Slice Delete to {url}")
except requests.exceptions.ConnectionError:
raise Exception("faild to send delete request to TFS IETF Slice NBI")
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