blob: 0d9ed2ee4527ae483f243dffcdcef59a72400e5f [file] [log] [blame]
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -08001syntax = "proto3";
HIGUCHI Yutae3e90632016-05-11 16:44:01 -07002option java_package = "org.onosproject.grpc.net";
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -08003
4package Port;
5
6enum PortType {
7 // Signifies copper-based connectivity.
8 COPPER = 0;
9 // Signifies optical fiber-based connectivity.
10 FIBER = 1;
11 // Signifies optical fiber-based packet port.
12 PACKET = 2;
13 // Signifies optical fiber-based optical tributary port (called T-port).
14 //The signal from the client side will be formed into a ITU G.709 (OTN) frame.
15 ODUCLT = 3;
16 // Signifies optical fiber-based Line-side port (called L-port).
17 OCH = 4;
18 // Signifies optical fiber-based WDM port (called W-port).
19 //Optical Multiplexing Section (See ITU G.709).
20 OMS = 5;
21 // Signifies virtual port.
22 VIRTUAL = 6;
23}
24
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -080025message PortDescription {
26 // PortNumber as String PortNumber#toString
27 string port_number = 1;
28 bool is_enabled = 2;
29 PortType type = 3;
30 int64 port_speed = 4;
31 map<string, string> annotations = 8;
32}
33
34message PortStatistics {
35 int32 port = 1;
36 int64 packets_received = 2;
37 int64 packets_sent = 3;
38 // TODO add all other fields
39}