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