blob: a3fd34d8f052f5d42d1725afba4fc0bc55da1240 [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
Shravan Ambatibb6b4452016-05-04 13:25:28 -070034// Corresponds to org.onosproject.net.Port.
35message PortCore {
36 string port_number = 1;
37 bool is_enabled = 2;
38 PortType type = 3;
39 int64 port_speed = 4;
40 map<string, string> annotations = 5;
41}
42
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -080043message PortStatistics {
44 int32 port = 1;
45 int64 packets_received = 2;
46 int64 packets_sent = 3;
47 // TODO add all other fields
48}