blob: 94d9588b705edfecf51256fc2d61c08fa89c6f5f [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001syntax = "proto3";
2
3package voltha;
4
5import "meta.proto";
6import "google/api/annotations.proto";
7import "openflow_13.proto";
8
9
10message 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
18message LogicalPorts {
19 repeated LogicalPort items = 1;
20}
21
22message 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
50message LogicalDevices {
51 repeated LogicalDevice items = 1;
52}