HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 1 | syntax = "proto3"; |
HIGUCHI Yuta | e3e9063 | 2016-05-11 16:44:01 -0700 | [diff] [blame] | 2 | option java_package = "org.onosproject.grpc.net"; |
HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 3 | |
HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 4 | package Device; |
| 5 | |
Shravan Ambati | bb6b445 | 2016-05-04 13:25:28 -0700 | [diff] [blame] | 6 | message DeviceDescription { |
| 7 | string device_Uri = 1; |
| 8 | DeviceType type = 2; |
| 9 | string manufacturer = 3; |
| 10 | string hw_version = 4; |
| 11 | string sw_version = 5; |
| 12 | string serial_number = 6; |
| 13 | string chassis_id = 7; |
| 14 | map<string, string> annotations = 8; |
| 15 | } |
| 16 | |
| 17 | enum MastershipRole { |
| 18 | NONE = 0; |
| 19 | MASTER = 1; |
| 20 | STANDBY = 2; |
| 21 | } |
| 22 | |
HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 23 | enum DeviceType { |
| 24 | OTHER = 0; |
| 25 | SWITCH = 1; |
| 26 | ROUTER = 2; |
| 27 | ROADM = 3; |
| 28 | OTN = 4; |
| 29 | ROADM_OTN = 5; |
| 30 | FIREWALL = 6; |
| 31 | BALANCER = 7; |
| 32 | IPS = 8; |
| 33 | IDS = 9; |
| 34 | CONTROLLER = 10; |
| 35 | VIRTUAL = 11; |
| 36 | FIBER_SWITCH = 12; |
| 37 | MICROWAVE = 13; |
| 38 | } |
| 39 | |
Shravan Ambati | bb6b445 | 2016-05-04 13:25:28 -0700 | [diff] [blame] | 40 | // Corresponds to org.onosproject.net.Device. |
| 41 | message DeviceCore { |
| 42 | string deviceId = 1; |
HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 43 | DeviceType type = 2; |
| 44 | string manufacturer = 3; |
| 45 | string hw_version = 4; |
| 46 | string sw_version = 5; |
| 47 | string serial_number = 6; |
| 48 | string chassis_id = 7; |
| 49 | map<string, string> annotations = 8; |
Shravan Ambati | bb6b445 | 2016-05-04 13:25:28 -0700 | [diff] [blame] | 50 | } |