blob: 7d25e1aa035e8510c1eb74cde770de1e6e115041 [file] [log] [blame]
Carmelo Cascone1022a4e2017-05-25 00:16:18 -04001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Carmelo Cascone1022a4e2017-05-25 00:16:18 -04003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.net.pi.runtime;
18
19import com.google.common.annotations.Beta;
20
21/**
Carmelo Cascone87892e22017-11-13 16:01:29 -080022 * Instance of an action that can be executed as a consequence of a match in a match+action table of a
23 * protocol-independent pipeline.
Carmelo Cascone1022a4e2017-05-25 00:16:18 -040024 */
25@Beta
26public interface PiTableAction {
27
28 /**
Carmelo Cascone87892e22017-11-13 16:01:29 -080029 * Types of table action.
Carmelo Cascone1022a4e2017-05-25 00:16:18 -040030 */
Carmelo Cascone1022a4e2017-05-25 00:16:18 -040031 enum Type {
32 /**
33 * Simple action with runtime parameters set by the control plane.
34 */
35 ACTION,
36
Carmelo Casconeb2e3dba2017-07-27 12:07:09 -040037 /**
38 * Executes the action group specified by the given identifier.
39 */
40 ACTION_GROUP_ID,
41
42 /**
43 * Executes the action member group specified by the given identifier.
44 */
45 GROUP_MEMBER_ID
Carmelo Cascone1022a4e2017-05-25 00:16:18 -040046 }
Carmelo Cascone87892e22017-11-13 16:01:29 -080047
48 /**
49 * Type of this action.
50 *
51 * @return a type
52 */
53 Type type();
Carmelo Cascone1022a4e2017-05-25 00:16:18 -040054}