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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 option version = "0.0.1";
18 import "vnet/interface_types.api";
19 import "vnet/ip/ip_types.api";
20 import "vnet/flow/flow_types.api";
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
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>]";
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
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
52 autoreply define flow_del
57 option vat_help = "test flow del index <index>";
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
66 autoreply define flow_enable
72 option vat_help = "test flow enable index <index> <interface name>";
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
81 autoreply define flow_disable
87 option vat_help = "test flow disable index <index> <interface name>";
92 * eval: (c-set-style "gnu")