HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | option java_package = "org.onosproject.grpc"; |
| 3 | |
| 4 | package Port; |
| 5 | |
| 6 | enum 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 ... |
| 26 | message 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 | |
| 35 | message PortStatistics { |
| 36 | int32 port = 1; |
| 37 | int64 packets_received = 2; |
| 38 | int64 packets_sent = 3; |
| 39 | // TODO add all other fields |
| 40 | } |