blob: 2a79becee4897808eb4eccec0a9abc4a40120e0b [file] [log] [blame]
Pavel Kotucekabea9662016-12-21 15:50:08 +01001/*
2 * Copyright (c) 2015-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
Filip Tehlarc3af7bf2017-01-13 14:13:09 +010016/** \brief LISP locator structure
17 @param is_ip4 - whether addr is IPv4 or v6
18 @param weight - locator weight
19 @param addr - IPv4/6 address
20*/
21typeonly manual_print manual_endian define lisp_gpe_locator
22{
23 u8 is_ip4;
24 u8 weight;
25 u8 addr[16];
26};
27
Pavel Kotucekabea9662016-12-21 15:50:08 +010028/** \brief add or delete lisp gpe tunnel
29 @param client_index - opaque cookie to identify the sender
30 @param context - sender context, to match reply w/ request
31 @param is_add - add address if non-zero, else delete
32 @param eid_type -
33 0 : ipv4
34 1 : ipv6
35 2 : mac
36 @param rmt_eid - remote eid
37 @param lcl_eid - local eid
38 @param rmt_len - remote prefix len
39 @param lcl_len - local prefix len
40 @param vni - virtual network identifier
41 @param dp_table - vrf/bridge domain id
Pavel Kotucekabea9662016-12-21 15:50:08 +010042 @param action - negative action when 0 locators configured
Filip Tehlarc3af7bf2017-01-13 14:13:09 +010043 @param loc_num - number of locators
44 @param locs - array of remote locators
Pavel Kotucekabea9662016-12-21 15:50:08 +010045*/
Filip Tehlarc3af7bf2017-01-13 14:13:09 +010046manual_print manual_endian define lisp_gpe_add_del_fwd_entry
Pavel Kotucekabea9662016-12-21 15:50:08 +010047{
48 u32 client_index;
49 u32 context;
50 u8 is_add;
51 u8 eid_type;
52 u8 rmt_eid[16];
53 u8 lcl_eid[16];
54 u8 rmt_len;
55 u8 lcl_len;
56 u32 vni;
57 u32 dp_table;
Pavel Kotucekabea9662016-12-21 15:50:08 +010058 u8 action;
Filip Tehlarc3af7bf2017-01-13 14:13:09 +010059 u32 loc_num;
60 vl_api_lisp_gpe_locator_t locs[loc_num];
Pavel Kotucekabea9662016-12-21 15:50:08 +010061};
62
63/** \brief Reply for gpe_fwd_entry add/del
64 @param context - returned sender context, to match reply w/ request
65 @param retval - return code
66*/
67define lisp_gpe_add_del_fwd_entry_reply
68{
69 u32 context;
70 i32 retval;
71};
72
73/** \brief enable or disable lisp-gpe protocol
74 @param client_index - opaque cookie to identify the sender
75 @param context - sender context, to match reply w/ request
76 @param is_en - enable protocol if non-zero, else disable
77*/
78define lisp_gpe_enable_disable
79{
80 u32 client_index;
81 u32 context;
82 u8 is_en;
83};
84
85/** \brief Reply for gpe enable/disable
86 @param context - returned sender context, to match reply w/ request
87 @param retval - return code
88*/
89define lisp_gpe_enable_disable_reply
90{
91 u32 context;
92 i32 retval;
93};
94
95/** \brief add or delete gpe_iface
96 @param client_index - opaque cookie to identify the sender
97 @param context - sender context, to match reply w/ request
98 @param is_add - add address if non-zero, else delete
99*/
100define lisp_gpe_add_del_iface
101{
102 u32 client_index;
103 u32 context;
104 u8 is_add;
105 u8 is_l2;
106 u32 dp_table;
107 u32 vni;
108};
109
110/** \brief Reply for gpe_iface add/del
111 @param context - returned sender context, to match reply w/ request
112 @param retval - return code
113*/
114define lisp_gpe_add_del_iface_reply
115{
116 u32 context;
117 i32 retval;
118};
119
Pavel Kotucekabea9662016-12-21 15:50:08 +0100120/*
121 * Local Variables:
122 * eval: (c-set-style "gnu")
123 * End:
124 */
Filip Tehlarc3af7bf2017-01-13 14:13:09 +0100125