-
Notifications
You must be signed in to change notification settings - Fork 390
/
interface.sandesh
95 lines (86 loc) · 2.43 KB
/
interface.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
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
include "vnsw/agent/uve/port_bmap.sandesh"
/**
* Uve definitions for interface
*/
/**
* Sandesh definition for vm floatingip in agent
*/
struct VmFloatingIPAgent {
1: string virtual_network;
2: string ip_address;
}
/**
* Sandesh definition for vm floating ip stats
*/
struct VmFloatingIPStats {
1: string virtual_network;
2: string ip_address;
3: u64 in_pkts;
4: u64 in_bytes;
5: u64 out_pkts;
6: u64 out_bytes;
}
/**
* VM's interfaces' stats samples (diff stats)
*/
struct VmInterfaceStats {
1: u64 in_pkts;
2: u64 in_bytes;
3: u64 out_pkts;
4: u64 out_bytes;
}
struct VmHealthCheckInstance {
1: string name;
2: string uuid;
3: bool is_running;
4: string status;
}
/**
* Number of flow hits for a given SG ACL Rule
*/
struct SgAclRuleStats {
1: string rule;
2: u64 count;
}
/**
* Sandesh definition for vm interface in agent
*/
struct UveVMInterfaceAgent {
1: string name (key="ObjectVMITable")
2: optional bool deleted
3: optional string ip_address;
4: string virtual_network;
5: optional string mac_address;
6: optional u32 label;
7: optional bool active;
8: string vm_name;
9: optional string gateway;
10: optional bool l2_active;
11: optional string uuid;
12: optional string ip6_address;
13: optional bool ip6_active;
14: optional port_bmap.PortBucketBitmap port_bucket_bmap;
15: optional list<VmFloatingIPAgent> floating_ips;
/* List of Floating Ips along with total stats */
16: optional list<VmFloatingIPStats> fip_agg_stats;
17: optional list<VmFloatingIPStats> fip_diff_stats (tags=".virtual_network,.ip_address")
18: optional VmInterfaceStats if_stats (tags="vm_name,vm_uuid")
19: string vm_uuid;
20: optional u64 in_bw_usage;
21: optional u64 out_bw_usage;
22: optional bool ip4_active;
23: optional bool is_health_check_active;
24: optional list<VmHealthCheckInstance> health_check_instance_list;
25: optional list<SgAclRuleStats> sg_rule_stats (tags=".rule");
}
/**
* @description: uve for vm interface in agent
* @type: uve
* @object:Interface
*/
uve sandesh UveVMInterfaceAgentTrace {
1: UveVMInterfaceAgent data;
}