blob: f32193cc013e41911d86997f7ef6ffce47f378d0 [file] [log] [blame]
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -08001syntax = "proto3";
2option java_package = "org.onosproject.grpc";
3
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
25// TODO What are we going to do with more specific PortDescription ...
26message PortDescription {
27 // PortNumber as String PortNumber#toString
28 string port_number = 1;
29 bool is_enabled = 2;
30 PortType type = 3;
31 int64 port_speed = 4;
32 map<string, string> annotations = 8;
33}
34
35message PortStatistics {
36 int32 port = 1;
37 int64 packets_received = 2;
38 int64 packets_sent = 3;
39 // TODO add all other fields
40}