ip: convert u32 entry_flags to vl_api_mfib_entry_flags_t on mroute API
[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_entry_flags
20 {
21     MFIB_API_ENTRY_FLAG_NONE = 0,
22     MFIB_API_ENTRY_FLAG_SIGNAL = 0x1,
23     MFIB_API_ENTRY_FLAG_DROP = 0x2,
24     MFIB_API_ENTRY_FLAG_CONNECTED = 0x4,
25     MFIB_API_ENTRY_FLAG_ACCEPT_ALL_ITF = 0x8,
26 };
27
28 enum mfib_itf_flags
29 {
30     MFIB_API_ITF_FLAG_NONE = 0,
31     MFIB_API_ITF_FLAG_NEGATE_SIGNAL = 0x1,
32     MFIB_API_ITF_FLAG_ACCEPT = 0x2,
33     MFIB_API_ITF_FLAG_FORWARD = 0x4,
34     MFIB_API_ITF_FLAG_SIGNAL_PRESENT = 0x8,
35     MFIB_API_ITF_FLAG_DONT_PRESERVE = 0x10,
36 };
37
38 /** \brief mFIB path
39 */
40 typedef mfib_path
41 {
42   vl_api_mfib_itf_flags_t itf_flags;
43   vl_api_fib_path_t path;
44 };