-
Notifications
You must be signed in to change notification settings - Fork 126
/
state.proto
91 lines (77 loc) · 2.05 KB
/
state.proto
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
syntax = "proto3";
package ligato.vpp.interfaces;
option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/vpp/interfaces;vpp_interfaces";
import "ligato/vpp/interfaces/interface.proto";
import "ligato/annotations.proto";
message InterfaceStats {
string name = 1;
message CombinedCounter {
uint64 packets = 1;
uint64 bytes = 2;
}
CombinedCounter rx = 2;
CombinedCounter tx = 3;
CombinedCounter rx_unicast = 4;
CombinedCounter rx_multicast = 5;
CombinedCounter rx_broadcast = 6;
CombinedCounter tx_unicast = 7;
CombinedCounter tx_multicast = 8;
CombinedCounter tx_broadcast = 9;
uint64 rx_error = 12;
uint64 tx_error = 13;
uint64 rx_no_buf = 10;
uint64 rx_miss = 11;
uint64 drops = 14;
uint64 punts = 15;
uint64 ip4 = 16;
uint64 ip6 = 17;
uint64 mpls = 18;
}
message InterfaceState {
string name = 1;
string internal_name = 2;
vpp.interfaces.Interface.Type type = 3;
uint32 if_index = 4;
enum Status {
UNKNOWN_STATUS = 0;
UP = 1;
DOWN = 2;
DELETED = 3;
};
Status admin_status = 5;
Status oper_status = 6;
int64 last_change = 7;
string phys_address = 8;
uint64 speed = 9;
uint32 mtu = 10 [(ligato_options).int_range = {minimum: 0 maximum: 9216}];
enum Duplex {
UNKNOWN_DUPLEX = 0;
HALF = 1;
FULL = 2;
};
Duplex duplex = 11;
message Statistics {
uint64 in_packets = 1;
uint64 in_bytes = 2;
uint64 out_packets = 3;
uint64 out_bytes = 4;
uint64 drop_packets = 5;
uint64 punt_packets = 6;
uint64 ipv4_packets = 7;
uint64 ipv6_packets = 8;
uint64 in_nobuf_packets = 9;
uint64 in_miss_packets = 10;
uint64 in_error_packets = 11;
uint64 out_error_packets = 12;
}
Statistics statistics = 100;
}
message InterfaceNotification {
enum NotifType {
UNKNOWN = 0;
UPDOWN = 1;
COUNTERS = 2;
}
NotifType type = 1;
InterfaceState state = 2;
}