blob: 75cf0f5616659183e49da2f64450a9f9957dcf39 [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
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -08004package Device;
5
Shravan Ambatibb6b4452016-05-04 13:25:28 -07006message 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 HIGUCHI3680fab2016-08-22 21:19:55 -070015 bool is_default_available = 9;
Shravan Ambatibb6b4452016-05-04 13:25:28 -070016}
17
18enum MastershipRole {
19 NONE = 0;
20 MASTER = 1;
21 STANDBY = 2;
22}
23
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -080024enum 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 Ambatibb6b4452016-05-04 13:25:28 -070041// Corresponds to org.onosproject.net.Device.
42message DeviceCore {
43 string deviceId = 1;
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -080044 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 HIGUCHI3680fab2016-08-22 21:19:55 -070051}