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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 This file defines the stats API
23 /** \brief Want Stats, enable/disable ALL stats updates
24 @param client_index - opaque cookie to identify the sender
25 @param context - sender context, to match reply w/ request
26 @param enable_disable - 1 = enable stats, 0 = disable
27 @param pid - pid of process requesting stats updates
29 autoreply define want_stats
37 /** \brief Want Interface Simple Stats, register for detailed interface stats
38 @param client_index - opaque cookie to identify the sender
39 @param context - sender context, to match reply w/ request
40 @param enable_disable - 1 = enable stats, 0 = disable
41 @param pid - pid of process requesting stats updates
43 Please consider using want_per_interface_simple_stats with sw_if_index=~0
45 autoreply define want_interface_simple_stats
53 /** \brief Want Per Interface simple Stats, register for continuous stats
54 @param client_index - opaque cookie to identify the sender
55 @param context - sender context, to match reply w/ request
56 @param enable_disable - 1 = enable stats, 0 = disable
57 @param pid - pid of process requesting stats updates
58 @param num - number of sw_if_indexes
59 @param sw_ifs - array of sw_if_index
61 autoreply define want_per_interface_simple_stats
72 /** \brief Want Interface Combined Stats, register for continuous stats
73 @param client_index - opaque cookie to identify the sender
74 @param context - sender context, to match reply w/ request
75 @param enable_disable - 1 = enable stats, 0 = disable
76 @param pid - pid of process requesting stats updates
78 Please consider using want_per_interface_combined_stats with sw_if_index=~0
81 autoreply define want_interface_combined_stats
89 /** \brief Want Per Interface Combined Stats, register for continuous stats
90 @param client_index - opaque cookie to identify the sender
91 @param context - sender context, to match reply w/ request
92 @param enable_disable - 1 = enable stats, 0 = disable
93 @param pid - pid of process requesting stats updates
94 @param num - number of sw_if_indexes
95 @param sw_ifs - array of sw_if_index
97 autoreply define want_per_interface_combined_stats
108 /** \brief Want IP4 FIB Stats, register for continuous stats
109 @param client_index - opaque cookie to identify the sender
110 @param context - sender context, to match reply w/ request
111 @param enable_disable - 1 = enable stats, 0 = disable
112 @param pid - pid of process requesting stats updates
114 autoreply define want_ip4_fib_stats
122 /** \brief Want IP6 FIB Stats, register for continuous stats
123 @param client_index - opaque cookie to identify the sender
124 @param context - sender context, to match reply w/ request
125 @param enable_disable - 1 = enable stats, 0 = disable
126 @param pid - pid of process requesting stats updates
128 autoreply define want_ip6_fib_stats
136 /** \brief Want IP4 NBR Stats, register for continuous stats
137 @param client_index - opaque cookie to identify the sender
138 @param context - sender context, to match reply w/ request
139 @param enable_disable - 1 = enable stats, 0 = disable
140 @param pid - pid of process requesting stats updates
142 autoreply define want_ip4_nbr_stats
150 /** \brief Want IP6 NBR Stats, register for continuous stats
151 @param client_index - opaque cookie to identify the sender
152 @param context - sender context, to match reply w/ request
153 @param enable_disable - 1 = enable stats, 0 = disable
154 @param pid - pid of process requesting stats updates
156 autoreply define want_ip6_nbr_stats
164 typeonly manual_print manual_endian define ip4_fib_counter
172 manual_print manual_endian define vnet_ip4_fib_counters
176 vl_api_ip4_fib_counter_t c[count];
179 typeonly manual_print manual_endian define ip4_nbr_counter
188 * @brief Per-neighbour (i.e. per-adjacency) coutners
189 * @param count The size of the array of counters
190 * @param sw_if_index The interface the adjacency is on
191 * @param begin Flag to indicate this is the first set of stats for this
192 * interface. If this flag is not set the it is a continuation of
193 * stats for this interface
196 manual_print manual_endian define vnet_ip4_nbr_counters
201 vl_api_ip4_nbr_counter_t c[count];
204 typeonly manual_print manual_endian define ip6_fib_counter
212 manual_print manual_endian define vnet_ip6_fib_counters
216 vl_api_ip6_fib_counter_t c[count];
219 typeonly manual_print manual_endian define ip6_nbr_counter
227 manual_print manual_endian define vnet_ip6_nbr_counters
232 vl_api_ip6_nbr_counter_t c[count];
236 /** \brief Request for a single block of summary stats
237 @param client_index - opaque cookie to identify the sender
238 @param context - sender context, to match reply w/ request
240 define vnet_get_summary_stats
246 /** \brief Reply for vnet_get_summary_stats request
247 @param context - sender context, to match reply w/ request
248 @param retval - return code for request
253 define vnet_get_summary_stats_reply
264 * eval: (c-set-style "gnu")