Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/voltha"; |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 4 | option java_package = "org.opencord.voltha.logical_device"; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 5 | option java_outer_classname = "OFLogicalDevice"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 6 | |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 7 | package logical_device; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 8 | |
| 9 | import "google/api/annotations.proto"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 10 | import "voltha_protos/openflow_13.proto"; |
| 11 | |
| 12 | message 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 | |
| 20 | message 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 Jeanneret | 4604c42 | 2019-03-14 19:04:43 -0400 | [diff] [blame] | 26 | openflow_13.ofp_port_stats ofp_port_stats = 6; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | message LogicalPorts { |
| 30 | repeated LogicalPort items = 1; |
| 31 | } |
| 32 | |
| 33 | message 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 Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | message LogicalDevices { |
| 52 | repeated LogicalDevice items = 1; |
| 53 | } |