VPPAPIGEN: vppapigen replacement in Python PLY.
[vpp.git] / src / vnet / fib / fib_types.api
1 /*
2  * Copyright (c) 2016 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:
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 /** \brief FIB path
17     @param sw_if_index - index of the interface
18     @param weight - The weight, for UCMP
19     @param preference - The preference of the path. lowest preference
20     is prefered
21     @param is_local - local if non-zero, else remote
22     @param is_drop - Drop the packet
23     @param is_udp_encap - The path describes a UDP-o-IP encapsulation.
24     @param afi - the afi of the next hop, IP46_TYPE_IP4=1, IP46_TYPE_IP6=2
25     @param next_hop[16] - the next hop address
26     @param next_hop_id - Used when the path resolves via an object
27                          that has a unique identifier. e.g. the UDP
28                          encap object
29 */
30 typeonly define fib_path3
31 {
32   u32 sw_if_index;
33   u32 table_id;
34   u8 weight;
35   u8 preference;
36   u8 is_local;
37   u8 is_drop;
38   u8 is_udp_encap;
39   u8 afi;
40   u8 next_hop[16];
41   u32 next_hop_id;
42   u32 rpf_id;
43   u8 n_labels;
44   u32 label_stack[16];
45 };