Commit a65301c9 authored by Shayan Hajipour's avatar Shayan Hajipour
Browse files

comments added to ietf slice driver

parent aa6b1af6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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")