blob: b4950097f61757871f903d6510eb958fd5ca9eb1 [file] [log] [blame]
Pavel Kotucek56f32cc2016-12-22 10:03:25 +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
Neale Rannse524d452019-02-19 15:22:46 +000016option version = "1.1.0";
17
18import "vnet/ip/ip_types.api";
Dave Barach0d056e52017-09-28 15:11:16 -040019
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010020/** \brief Add / del ipsec gre tunnel request
21 @param client_index - opaque cookie to identify the sender
22 @param context - sender context, to match reply w/ request
Neale Rannse524d452019-02-19 15:22:46 +000023 @param local_sa_id - local/output SA id
24 @param remote_sa_id - remote/input SA id
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010025 @param is_add - 1 if adding the tunnel, 0 if deleting
Neale Rannse524d452019-02-19 15:22:46 +000026 @param sw_if_index - software index of the ipsec gre tunnel
27 ignored on create. set in dump/details
28 @param src - tunnel source address
29 @param dst - tunnel destination address
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010030*/
Neale Rannse524d452019-02-19 15:22:46 +000031typedef ipsec_gre_tunnel {
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010032 u32 client_index;
33 u32 context;
34 u32 local_sa_id;
35 u32 remote_sa_id;
36 u8 is_add;
Neale Rannse524d452019-02-19 15:22:46 +000037 u32 sw_if_index;
38 vl_api_ip4_address_t src;
39 vl_api_ip4_address_t dst;
40};
41
42define ipsec_gre_tunnel_add_del {
43 u32 client_index;
44 u32 context;
45 u8 is_add;
46 vl_api_ipsec_gre_tunnel_t tunnel;
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010047};
48
49/** \brief Reply for add / del ipsec gre tunnel request
50 @param context - returned sender context, to match reply w/ request
51 @param retval - return code
52 @param sw_if_index - software index of the new ipsec gre tunnel
53*/
Neale Rannse524d452019-02-19 15:22:46 +000054define ipsec_gre_tunnel_add_del_reply {
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010055 u32 context;
56 i32 retval;
57 u32 sw_if_index;
58};
59
60/** \brief Dump ipsec gre tunnel table
61 @param client_index - opaque cookie to identify the sender
62 @param context - sender context, to match reply w/ request
63 @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
64*/
65define ipsec_gre_tunnel_dump {
66 u32 client_index;
67 u32 context;
68 u32 sw_if_index;
69};
70
71/** \brief ipsec gre tunnel operational state response
72 @param context - returned sender context, to match reply w/ request
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010073 @param local_sa_id - local SA id
74 @param remote_sa_id - remote SA id
75 @param src_address - tunnel source address
76 @param dst_address - tunnel destination address
77*/
78define ipsec_gre_tunnel_details {
79 u32 context;
Neale Rannse524d452019-02-19 15:22:46 +000080 vl_api_ipsec_gre_tunnel_t tunnel;
Pavel Kotucek56f32cc2016-12-22 10:03:25 +010081};
82
83/*
84 * Local Variables:
85 * eval: (c-set-style "gnu")
86 * End:
87 */
Ole Troan9d420872017-10-12 13:06:35 +020088