blob: a01790eac706e385dbaca12df83f254c943ed993 [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;
15}
16
17enum MastershipRole {
18 NONE = 0;
19 MASTER = 1;
20 STANDBY = 2;
21}
22
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -080023enum 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 Ambatibb6b4452016-05-04 13:25:28 -070040// Corresponds to org.onosproject.net.Device.
41message DeviceCore {
42 string deviceId = 1;
HIGUCHI Yuta15653fd2015-11-09 11:05:09 -080043 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 Ambatibb6b4452016-05-04 13:25:28 -070050}