Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package voltha; |
| 4 | |
| 5 | import "meta.proto"; |
| 6 | import "google/api/annotations.proto"; |
| 7 | import "openflow_13.proto"; |
| 8 | |
| 9 | |
| 10 | message LogicalPort { |
| 11 | string id = 1; |
| 12 | openflow_13.ofp_port ofp_port = 2; |
| 13 | string device_id = 3; |
| 14 | uint32 device_port_no = 4; |
| 15 | bool root_port = 5; |
| 16 | } |
| 17 | |
| 18 | message LogicalPorts { |
| 19 | repeated LogicalPort items = 1; |
| 20 | } |
| 21 | |
| 22 | message LogicalDevice { |
| 23 | |
| 24 | // unique id of logical device |
| 25 | string id = 1; |
| 26 | |
| 27 | // unique datapath id for the logical device (used by the SDN controller) |
| 28 | uint64 datapath_id = 2; |
| 29 | |
| 30 | // device description |
| 31 | openflow_13.ofp_desc desc = 3; |
| 32 | |
| 33 | // device features |
| 34 | openflow_13.ofp_switch_features switch_features = 4; |
| 35 | |
| 36 | // name of the root device anchoring logical device |
| 37 | string root_device_id = 5; |
| 38 | |
| 39 | // logical device ports |
| 40 | repeated LogicalPort ports = 128 [(child_node) = {key: "id"}]; |
| 41 | |
| 42 | // flows configured on the logical device |
| 43 | openflow_13.Flows flows = 129 [(child_node) = {}]; |
| 44 | |
| 45 | // flow groups configured on the logical device |
| 46 | openflow_13.FlowGroups flow_groups = 130 [(child_node) = {}]; |
| 47 | |
| 48 | } |
| 49 | |
| 50 | message LogicalDevices { |
| 51 | repeated LogicalDevice items = 1; |
| 52 | } |