Commit e8de1c11 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Slice component:

- Updated SliceClient class with missing methods
parent be7dacef
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -65,3 +65,17 @@ class SliceClient:
        response = self.stub.DeleteSlice(request)
        LOGGER.debug('DeleteSlice result: {:s}'.format(grpc_message_to_json_string(response)))
        return response

    @RETRY_DECORATOR
    def OrderSliceWithSLA(self, request : Slice) -> SliceId:
        LOGGER.debug('OrderSliceWithSLA request: {:s}'.format(grpc_message_to_json_string(request)))
        response = self.stub.OrderSliceWithSLA(request)
        LOGGER.debug('OrderSliceWithSLA result: {:s}'.format(grpc_message_to_json_string(response)))
        return response

    @RETRY_DECORATOR
    def RunSliceGrouping(self, request : Empty) -> Empty:
        LOGGER.debug('RunSliceGrouping request: {:s}'.format(grpc_message_to_json_string(request)))
        response = self.stub.RunSliceGrouping(request)
        LOGGER.debug('RunSliceGrouping result: {:s}'.format(grpc_message_to_json_string(response)))
        return response