fib: fib api updates
[vpp.git] / src / vnet / mfib / mfib_types.api
1 /*
2  * Copyright (c) 2018 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 import "vnet/fib/fib_types.api";
17 import "vnet/ip/ip_types.api";
18
19 enum mfib_itf_flags
20 {
21     MFIB_API_ITF_FLAG_NONE = 0,
22     MFIB_API_ITF_FLAG_NEGATE_SIGNAL = 0x1,
23     MFIB_API_ITF_FLAG_ACCEPT = 0x2,
24     MFIB_API_ITF_FLAG_FORWARD = 0x4,
25     MFIB_API_ITF_FLAG_SIGNAL_PRESENT = 0x8,
26     MFIB_API_ITF_FLAG_DONT_PRESERVE = 0x10,
27 };
28
29 /** \brief mFIB path
30 */
31 typeonly define mfib_path
32 {
33   vl_api_mfib_itf_flags_t itf_flags;
34   vl_api_fib_path_t path;
35 };