} /* Controller/switch message */
/* Asynchronous message configuration. */
- notification get-async-request-message {
- uses get-async-request;
- // reference "OFPT_GET_ASYNC_REQUEST message in Openflow Switch 1.3 Spec"
-
- } /* Controller/switch message */
- notification get-async-reply-message {
- uses get-async-reply;
- // reference "OFPT_GET_ASYNC_REPLY message in Openflow Switch 1.3 Spec"
-
- } /* Controller/switch message */
- notification set-async-message {
- uses set-async;
+ rpc get-async {
+ input {
+ uses get-async-request;
+ // reference "OFPT_GET_ASYNC_REQUEST message in Openflow Switch 1.3 Spec"
+ }
+ output {
+ uses get-async-reply;
+ // reference "OFPT_GET_ASYNC_REPLY message in Openflow Switch 1.3 Spec"
+ }
+ }
+ /* Controller/switch message */
+ rpc set-async {
+ input {
+ uses set-async;
// reference "OFPT_SET_ASYNC message in Openflow Switch 1.3 Spec"
+ }
- } /* Controller/switch message */
+ }
/* Meters and rate limiters configuration messages. */
rpc meter-mod {
input {
import java.util.Collection;
import java.util.concurrent.Future;
+import org.opendaylight.controller.sal.common.util.RpcErrors;
import org.opendaylight.controller.sal.common.util.Rpcs;
import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.BarrierInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoReplyInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.ExperimenterInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FlowModInput;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetAsyncInput;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetAsyncOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetConfigInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetConfigOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PortModInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.RoleRequestInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.RoleRequestOutput;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.SetAsyncInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.SetConfigInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.TableModInput;
import org.opendaylight.yangtools.yang.common.RpcError;
import org.opendaylight.yangtools.yang.common.RpcError.ErrorSeverity;
+import org.opendaylight.yangtools.yang.common.RpcError.ErrorType;
import org.opendaylight.yangtools.yang.common.RpcResult;
import com.google.common.collect.Lists;
return null;
}
+ /* (non-Javadoc)
+ * @see org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService#getAsync(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetAsyncInput)
+ */
+ @Override
+ public Future<RpcResult<GetAsyncOutput>> getAsync(GetAsyncInput input) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService#setAsync(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.SetAsyncInput)
+ */
+ @Override
+ public Future<RpcResult<Void>> setAsync(SetAsyncInput input) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
@Override
public Future<Boolean> disconnect() {
ChannelFuture disconnectResult = channel.disconnect();
*/
protected RpcError buildRpcError(String info, ErrorSeverity severity, String message,
Throwable cause) {
- // TODO - uncomment, when sal-common-util merged
-// RpcError error = RpcErrors.getRpcError(APPLICATION_TAG, TAG, info, severity, message,
-// ErrorType.RPC, cause);
-// return error;
-
- return null;
+ RpcError error = RpcErrors.getRpcError(APPLICATION_TAG, TAG, info, severity, message,
+ ErrorType.RPC, cause);
+ return error;
}
/**
*/
protected RpcError buildTransportError(String info, ErrorSeverity severity, String message,
Throwable cause) {
- // TODO - uncomment, when sal-common-util merged
-// RpcError error = RpcErrors.getRpcError(APPLICATION_TAG, TAG, info, severity, message,
-// ErrorType.TRANSPORT, cause);
-// return error;
-
- return null;
+ RpcError error = RpcErrors.getRpcError(APPLICATION_TAG, TAG, info, severity, message,
+ ErrorType.TRANSPORT, cause);
+ return error;
}
}