Loading src/device/service/drivers/ietf_slice/tfs_slice_nbi_client.py +3 −0 Original line number Diff line number Diff line Loading @@ -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") Loading @@ -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") Loading @@ -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") Loading
src/device/service/drivers/ietf_slice/tfs_slice_nbi_client.py +3 −0 Original line number Diff line number Diff line Loading @@ -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") Loading @@ -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") Loading @@ -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")