FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
oam.api
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2017 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 /** \file
17 
18  This file defines vpe control-plane API messages which are generally
19  called through a shared memory interface.
20 */
21 
22 vl_api_version 1.0.0
23 
24 /** \brief OAM event structure
25  @param dst_address[] -
26  @param state
27 */
28 define oam_event
29 {
30  u8 dst_address[4];
32 };
33 
34 /** \brief Want OAM events request
35  @param client_index - opaque cookie to identify the sender
36  @param context - sender context, to match reply w/ request
37  @param enable_disable- enable if non-zero, else disable
38  @param pid - pid of the requesting process
39 */
40 autoreply define want_oam_events
41 {
46 };
47 
48 /** \brief OAM add / del target request
49  @param client_index - opaque cookie to identify the sender
50  @param context - sender context, to match reply w/ request
51  @param vrf_id - vrf_id of the target
52  @param src_address[] - source address to use for the updates
53  @param dst_address[] - destination address of the target
54  @param is_add - add target if non-zero, else delete
55 */
56 autoreply define oam_add_del
57 {
61  u8 src_address[4];
62  u8 dst_address[4];
64 };
65 
66 /*
67  * Local Variables:
68  * eval: (c-set-style "gnu")
69  * End:
70  */
#define vl_api_version(n, v)
Definition: jvpp_registry.c:18
unsigned int u32
Definition: types.h:88
unsigned char u8
Definition: types.h:56