Loading src/slice/client/SliceClient.py +14 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
src/slice/client/SliceClient.py +14 −0 Original line number Diff line number Diff line Loading @@ -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