-
Notifications
You must be signed in to change notification settings - Fork 390
/
ifmap_server_show.sandesh
373 lines (299 loc) · 8.69 KB
/
ifmap_server_show.sandesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
/** Definitions for showing 'type' tables - IFMapNode/IFMapObject **/
struct IFMapObjectShowInfo {
1: u64 sequence_number;
2: string origin;
3: string data;
}
struct IFMapNodeShowInfo {
1: string node_name;
2: string interests;
3: string advertised;
4: string dbentryflags;
5: list<IFMapObjectShowInfo> obj_info;
6: list<string> neighbors;
7: string last_modified;
}
// Show all the nodes in the IFMap db
request sandesh IFMapTableShowReq {
1: string table_name;
2: string search_string;
}
response sandesh IFMapTableShowResp {
1: list<IFMapNodeShowInfo> ifmap_db;
2: optional string next_batch (link="IFMapTableShowReqIterate",
link_title="next_batch");
}
/** Definitions for showing link table - IFMapLink **/
struct IFMapLinkOriginShowInfo {
1: u64 sequence_number;
2: string origin;
}
struct IFMapLinkShowInfo {
1: string metadata;
2: string left (link="IFMapNodeShowReq")
3: string right (link="IFMapNodeShowReq")
4: string interests;
5: string advertised;
6: string dbentryflags;
7: string last_modified;
8: list<IFMapLinkOriginShowInfo> origins;
}
// Show all the nodes in the IFMap link table
request sandesh IFMapLinkTableShowReq {
1: string search_string;
}
response sandesh IFMapLinkTableShowResp {
1: u32 table_size;
2: list<IFMapLinkShowInfo> ifmap_db;
3: optional string next_batch (link="IFMapLinkTableShowReqIterate",
link_title="next_batch");
}
/** Definitions for showing the internal Update Queue **/
struct UpdateQueueShowEntry {
1: string node_name;
2: string qe_type;
3: string qe_bitset;
}
request sandesh IFMapUpdateQueueShowReq {
}
response sandesh IFMapUpdateQueueShowResp {
1: list<UpdateQueueShowEntry> queue;
}
/** Definitions for showing XMPP client details **/
struct VmRegInfo {
1: i32 vm_count;
2: list<string> vm_list;
}
struct IFMapXmppClientInfo {
1: string client_name;
2: i32 client_index;
9: VmRegInfo vm_reg_info;
3: u64 msgs_sent;
4: u64 msgs_blocked;
5: u64 nodes_sent;
6: u64 links_sent;
7: u64 bytes_sent;
8: bool is_blocked;
}
request sandesh IFMapXmppClientInfoShowReq {
}
response sandesh IFMapXmppClientInfoShowResp {
1: list<IFMapXmppClientInfo> client_stats;
}
/** Definitions for showing client_map_ and index_map_ in IFMapServer **/
struct IFMapServerClientMapShowEntry {
1: string client_name;
2: u64 tracker_entries;
}
struct IFMapServerShowClientMap {
1: i32 count;
2: list<IFMapServerClientMapShowEntry> clients;
}
struct IFMapServerIndexMapShowEntry {
1: i32 client_index;
2: string client_name;
}
struct IFMapServerShowIndexMap {
1: i32 count;
2: list<IFMapServerIndexMapShowEntry> clients;
}
request sandesh IFMapServerClientShowReq {
}
response sandesh IFMapServerClientShowResp {
1: IFMapServerShowClientMap name_list;
2: IFMapServerShowIndexMap index_list;
}
/** Definitions for showing all the nodes that should have gone to a client **/
struct IFMapPerClientNodesShowInfo {
1: string node_name (link="IFMapNodeShowReq")
2: string sent;
3: string tracked;
}
request sandesh IFMapPerClientNodesShowReq {
1: string client_index_or_name;
2: string search_string;
}
response sandesh IFMapPerClientNodesShowResp {
1: list<IFMapPerClientNodesShowInfo> node_db;
2: optional string next_batch (link="IFMapPerClientNodesShowReqIterate",
link_title="next_batch");
}
/** Definitions for showing all the links that should have gone to a client **/
struct IFMapPerClientLinksShowInfo {
1: string metadata;
2: string left (link="IFMapNodeShowReq")
3: string right (link="IFMapNodeShowReq")
4: string sent;
5: string tracked;
}
request sandesh IFMapPerClientLinksShowReq {
1: string client_index_or_name;
2: string search_string;
}
response sandesh IFMapPerClientLinksShowResp {
1: list<IFMapPerClientLinksShowInfo> link_db;
2: optional string next_batch (link="IFMapPerClientLinksShowReqIterate",
link_title="next_batch");
}
/** Definitions for showing a single IFMapNode/IFMapObject **/
request sandesh IFMapNodeShowReq {
1: string fq_node_name;
}
response sandesh IFMapNodeShowResp {
1: IFMapNodeShowInfo node_info;
}
/** Definitions for showing ChannelManager stats (xmpp) **/
struct IFMapChannelManagerStats {
1: u64 unknown_subscribe_messages;
2: u64 unknown_unsubscribe_messages;
3: u64 duplicate_channel_ready_messages;
4: u64 invalid_channel_not_ready_messages;
5: u64 invalid_channel_state_messages;
6: u64 invalid_vm_subscribe_messages;
7: u64 vmsub_novrsub_messages;
8: u64 vmunsub_novrsub_messages;
9: u64 vmunsub_novmsub_messages;
10: u64 dupicate_vrsub_messages;
11: u64 dupicate_vmsub_messages;
}
struct IFMapXmppChannelMapEntry {
1: string client_name;
4: string host_name;
3: string channel_name;
2: bool client_added;
}
struct IFMapXmppChannelMapList {
1: i32 channel_count;
2: list<IFMapXmppChannelMapEntry> channel_list;
}
struct IFMapChannelManagerInfo {
1: IFMapChannelManagerStats channel_manager_stats;
2: IFMapXmppChannelMapList channel_manager_map;
}
request sandesh IFMapXmppShowReq {
}
response sandesh IFMapXmppShowResp {
1: IFMapChannelManagerInfo channel_manager_info;
}
/** Definitions for showing ifmap-server state and stats **/
request sandesh IFMapPeerServerInfoReq {
}
struct IFMapPeerServerInfoUI {
1: string url;
2: string connection_status;
3: u64 connection_status_change_at;
}
struct IFMapServerInfoUI {
1: u64 num_peer_clients;
}
struct IFMapPeerServerInfo {
1: string url;
3: bool init_done;
}
struct IFMapPeerServerConnInfo {
1: string publisher_id;
2: string session_id;
3: u64 sequence_number;
4: string connection_status;
5: string host;
6: string port;
7: bool end_of_rib_computed;
8: bool end_of_rib_timer_running;
9: bool start_stale_entries_cleanup;
10: bool stale_entries_cleanup_timer_running;
}
struct IFMapPeerTimedoutEntry {
1: string peer
2: u64 timeout_count;
3: string last_timeout_ago
}
struct IFMapPeerTimedoutEntries {
1: i32 list_count
2: list<IFMapPeerTimedoutEntry> timedout_list
}
struct IFMapPeerServerStatsInfo {
1: u64 rx_msgs;
2: u64 tx_msgs;
3: u64 reconnect_attempts;
4: IFMapPeerTimedoutEntries timedout_entries;
}
struct IFMapStateMachineInfo {
1: string state;
2: string last_state;
3: string last_state_change_at;
4: string last_event;
5: string last_event_at;
6: u64 workq_enqueues;
7: u64 workq_dequeues;
8: u64 workq_length;
}
struct IFMapDSPeerInfoEntry {
1: string host;
2: string port;
3: bool in_use;
}
struct IFMapDSPeerInfo {
1: i32 num_peers;
2: list<IFMapDSPeerInfoEntry> ds_peer_list;
3: string service_name;
4: string subscriber_name;
5: string static_peer;
6: string current_peer;
7: u64 ds_response_count;
8: string last_response_ago;
9: u64 using_non_ds_peer_count;
10: u64 no_best_peer_count;
}
response sandesh IFMapPeerServerInfoResp {
1: IFMapPeerServerInfo server_info;
2: IFMapPeerServerConnInfo server_conn_info;
3: IFMapPeerServerStatsInfo stats_info;
4: IFMapStateMachineInfo sm_info;
5: IFMapDSPeerInfo ds_peer_info;
}
/** Definitions for showing the list of uuid to node mappings **/
request sandesh IFMapUuidToNodeMappingReq {
}
struct IFMapUuidToNodeMappingEntry {
1: string uuid;
2: string node_name;
}
response sandesh IFMapUuidToNodeMappingResp {
1: i32 map_count;
2: list<IFMapUuidToNodeMappingEntry> uuid_to_node_map;
}
/** Definitions for showing the list of node to uuid mappings **/
request sandesh IFMapNodeToUuidMappingReq {
}
struct IFMapNodeToUuidMappingEntry {
1: string node_name;
2: string uuid;
}
response sandesh IFMapNodeToUuidMappingResp {
1: i32 map_count;
2: list<IFMapNodeToUuidMappingEntry> node_to_uuid_map;
}
/** Definitions for showing the list of pending vm registrations **/
request sandesh IFMapPendingVmRegReq {
}
struct IFMapPendingVmRegEntry {
1: string vm_uuid;
2: string vr_name;
}
response sandesh IFMapPendingVmRegResp {
1: i32 map_count;
2: list<IFMapPendingVmRegEntry> vm_reg_map;
}
/** Definitions for showing the list of node ifmap tables **/
request sandesh IFMapNodeTableListShowReq {
}
struct IFMapNodeTableListShowEntry {
1: string table_name (link="IFMapTableShowReq")
2: u32 size
}
response sandesh IFMapNodeTableListShowResp {
1: list<IFMapNodeTableListShowEntry> table_list
}