blob: dddcbb0c65d642a9ed768c1844dd549ff9f7c46f [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001syntax = "proto3";
2
khenaidoo5fc5cea2021-08-11 17:39:16 -04003option go_package = "github.com/opencord/voltha-protos/v5/go/voltha";
khenaidoo4c6543e2021-10-19 17:25:58 -04004option java_package = "org.opencord.voltha.logical_device";
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03005option java_outer_classname = "OFLogicalDevice";
Zack Williams52209662019-02-07 10:15:31 -07006
khenaidoo4c6543e2021-10-19 17:25:58 -04007package logical_device;
Zack Williams52209662019-02-07 10:15:31 -07008
9import "google/api/annotations.proto";
Zack Williams52209662019-02-07 10:15:31 -070010import "voltha_protos/openflow_13.proto";
11
12message LogicalPortId {
13 // unique id of logical device
14 string id = 1;
15
16 // id of the port on the logical device
17 string port_id = 2;
18}
19
20message LogicalPort {
21 string id = 1;
22 openflow_13.ofp_port ofp_port = 2;
23 string device_id = 3;
24 uint32 device_port_no = 4;
25 bool root_port = 5;
Matt Jeanneret4604c422019-03-14 19:04:43 -040026 openflow_13.ofp_port_stats ofp_port_stats = 6;
Zack Williams52209662019-02-07 10:15:31 -070027}
28
29message LogicalPorts {
30 repeated LogicalPort items = 1;
31}
32
33message LogicalDevice {
34
35 // unique id of logical device
36 string id = 1;
37
38 // unique datapath id for the logical device (used by the SDN controller)
39 uint64 datapath_id = 2;
40
41 // device description
42 openflow_13.ofp_desc desc = 3;
43
44 // device features
45 openflow_13.ofp_switch_features switch_features = 4;
46
47 // name of the root device anchoring logical device
48 string root_device_id = 5;
Zack Williams52209662019-02-07 10:15:31 -070049}
50
51message LogicalDevices {
52 repeated LogicalDevice items = 1;
53}