FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
flow.api
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Intel and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 option version = "0.0.2";
17 
18 import "vnet/interface_types.api";
19 import "vnet/ip/ip_types.api";
20 import "vnet/flow/flow_types.api";
21 
22 /** \brief flow add request
23  @param client_index - opaque cookie to identify the sender
24  @param context - sender context, to match reply w/ request
25  @param flow - flow rule
26 */
27 define flow_add
28 {
31  vl_api_flow_rule_t flow;
32  option vat_help = "test flow add [src-ip <ip-addr/mask>] [dst-ip <ip-addr/mask>] [src-port <port/mask>] [dst-port <port/mask>] [proto <ip-proto>]";
33 };
34 
35 /** \brief reply for adding flow
36  @param context - sender context, to match reply w/ request
37  @param retval - return code
38  @param flow_index - flow index, can be used for flow del/enable/disable
39 */
40 define flow_add_reply
41 {
45 };
46 
47 /** \brief flow del request
48  @param client_index - opaque cookie to identify the sender
49  @param context - sender context, to match reply w/ request
50  @param flow_index - flow index
51 */
52 autoreply define flow_del
53 {
57  option vat_help = "test flow del index <index>";
58 };
59 
60 /** \brief flow enable request
61  @param client_index - opaque cookie to identify the sender
62  @param context - sender context, to match reply w/ request
63  @param flow_index - flow index
64  @param hw_if_index - hardware interface index
65 */
66 autoreply define flow_enable
67 {
72  option vat_help = "test flow enable index <index> <interface name>";
73 };
74 
75 /** \brief flow disable request
76  @param client_index - opaque cookie to identify the sender
77  @param context - sender context, to match reply w/ request
78  @param flow_index - flow index
79  @param hw_if_index - hardware interface index
80 */
81 autoreply define flow_disable
82 {
87  option vat_help = "test flow disable index <index> <interface name>";
88 };
89 
90 /*
91  * Local Variables:
92  * eval: (c-set-style "gnu")
93  * End:
94  */
vl_api_flow_add_reply_t::flow_index
u32 flow_index
Definition: flow.api:44
vl_api_flow_enable_t::vat_help
option vat_help
Definition: flow.api:72
vl_api_flow_disable_t::context
u32 context
Definition: flow.api:84
vl_api_flow_enable_t::context
u32 context
Definition: flow.api:69
vl_api_flow_del_t::context
u32 context
Definition: flow.api:55
vl_api_flow_disable_t::client_index
u32 client_index
Definition: flow.api:83
version
option version
Definition: flow.api:16
i32
signed int i32
Definition: types.h:77
vl_api_flow_add_t::context
u32 context
Definition: flow.api:30
vl_api_flow_add_t
flow add request
Definition: flow.api:27
vl_api_flow_enable_t::flow_index
u32 flow_index
Definition: flow.api:70
vl_api_flow_del_t::client_index
u32 client_index
Definition: flow.api:54
vl_api_flow_add_reply_t::context
u32 context
Definition: flow.api:42
vl_api_flow_enable_t::client_index
u32 client_index
Definition: flow.api:68
vl_api_flow_add_t::client_index
u32 client_index
Definition: flow.api:29
vl_api_flow_add_reply_t::retval
i32 retval
Definition: flow.api:43
vl_api_flow_del_t::vat_help
option vat_help
Definition: flow.api:57
vl_api_flow_del_t
flow del request
Definition: flow.api:52
vl_api_flow_enable_t
flow enable request
Definition: flow.api:66
vl_api_flow_disable_t
flow disable request
Definition: flow.api:81
vl_api_flow_enable_t::hw_if_index
u32 hw_if_index
Definition: flow.api:71
u32
unsigned int u32
Definition: types.h:88
vl_api_flow_add_t::flow
vl_api_flow_rule_t flow
Definition: flow.api:31
vl_api_flow_del_t::flow_index
u32 flow_index
Definition: flow.api:56
vl_api_flow_add_reply_t
reply for adding flow
Definition: flow.api:40
vl_api_flow_disable_t::vat_help
option vat_help
Definition: flow.api:87
vl_api_flow_disable_t::flow_index
u32 flow_index
Definition: flow.api:85
vl_api_flow_disable_t::hw_if_index
u32 hw_if_index
Definition: flow.api:86
vl_api_flow_add_t::vat_help
option vat_help
Definition: flow.api:32