2 * Copyright (c) 2021-2022 Cisco 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.3.0";
17 import "vnet/interface_types.api";
18 import "vnet/fib/fib_types.api";
20 /** \brief Add or update a session redirection
21 @param client_index - opaque cookie to identify the sender
22 @param context - sender context, to match reply w/ request
23 @param table_index - classifier table index
24 @param opaque_index - classifier session opaque index
25 @param match_len - classifier session match length in bytes (max is 80-bytes)
26 @param match - classifier session match
27 @param is_punt - true = punted traffic, false = forwarded traffic
28 @param n_paths - number of paths
29 @param paths - the paths of the redirect
32 autoreply define ip_session_redirect_add
41 u32 opaque_index [default=0xffffffff];
44 vl_api_fib_path_t paths[n_paths];
46 option vat_help = "table <index> match <match> via <path>";
47 option status="in_progress";
50 /** \brief Add or update a session redirection - version 2
51 @param client_index - opaque cookie to identify the sender
52 @param context - sender context, to match reply w/ request
53 @param table_index - classifier table index
54 @param opaque_index - classifier session opaque index
55 @param proto - protocol of forwarded packets (default autodetect from path nh)
56 @param is_punt - true = punted traffic, false = forwarded traffic
57 @param match_len - classifier session match length in bytes (max is 80-bytes)
58 @param match - classifier session match
59 @param n_paths - number of paths
60 @param paths - the paths of the redirect
63 autoreply define ip_session_redirect_add_v2
69 u32 opaque_index [default=0xffffffff];
70 vl_api_fib_path_nh_proto_t proto [default=0xffffffff];
75 vl_api_fib_path_t paths[n_paths];
77 option vat_help = "table <index> match <match> via <path>";
78 option status="in_progress";
81 /** \brief Delete a session redirection
82 @param client_index - opaque cookie to identify the sender
83 @param context - sender context, to match reply w/ request
84 @param table_index - classifier table index
85 @param match_len - classifier session match length in bytes (max is 80-bytes)
86 @param match - classifier session match
89 autoreply define ip_session_redirect_del
98 option vat_help = "session-index <index> table <index> match <match>";
99 option status="in_progress";
104 * eval: (c-set-style "gnu")