Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 3 | option go_package = "github.com/opencord/voltha-protos/v3/go/voltha"; |
| 4 | option java_package = "org.opencord.voltha"; |
| 5 | option java_outer_classname = "OFLogicalDevice"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 6 | |
| 7 | package voltha; |
| 8 | |
| 9 | import "google/api/annotations.proto"; |
| 10 | import "voltha_protos/meta.proto"; |
| 11 | import "voltha_protos/openflow_13.proto"; |
| 12 | |
| 13 | message LogicalPortId { |
| 14 | // unique id of logical device |
| 15 | string id = 1; |
| 16 | |
| 17 | // id of the port on the logical device |
| 18 | string port_id = 2; |
| 19 | } |
| 20 | |
| 21 | message LogicalPort { |
| 22 | string id = 1; |
| 23 | openflow_13.ofp_port ofp_port = 2; |
| 24 | string device_id = 3; |
| 25 | uint32 device_port_no = 4; |
| 26 | bool root_port = 5; |
Matt Jeanneret | 4604c42 | 2019-03-14 19:04:43 -0400 | [diff] [blame] | 27 | openflow_13.ofp_port_stats ofp_port_stats = 6; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | message LogicalPorts { |
| 31 | repeated LogicalPort items = 1; |
| 32 | } |
| 33 | |
| 34 | message LogicalDevice { |
| 35 | |
| 36 | // unique id of logical device |
| 37 | string id = 1; |
| 38 | |
| 39 | // unique datapath id for the logical device (used by the SDN controller) |
| 40 | uint64 datapath_id = 2; |
| 41 | |
| 42 | // device description |
| 43 | openflow_13.ofp_desc desc = 3; |
| 44 | |
| 45 | // device features |
| 46 | openflow_13.ofp_switch_features switch_features = 4; |
| 47 | |
| 48 | // name of the root device anchoring logical device |
| 49 | string root_device_id = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | message LogicalDevices { |
| 53 | repeated LogicalDevice items = 1; |
| 54 | } |