Serge Bazanski | 8d7843c | 2018-10-04 10:37:36 +0100 | [diff] [blame] | 1 | syntax = "proto3"; |
2 | |||||
3 | message Config { | ||||
4 | repeated Switch switch = 1; | ||||
Serge Bazanski | 9709eef | 2018-10-05 16:34:28 -0700 | [diff] [blame] | 5 | repeated Machine machine = 2; |
Serge Bazanski | 8d7843c | 2018-10-04 10:37:36 +0100 | [diff] [blame] | 6 | }; |
7 | |||||
8 | message Switch { | ||||
9 | string name = 1; | ||||
Serge Bazanski | 16e4ba2 | 2018-10-07 00:22:52 +0100 | [diff] [blame^] | 10 | string control_address = 2; |
Serge Bazanski | 9709eef | 2018-10-05 16:34:28 -0700 | [diff] [blame] | 11 | message SwitchPort { |
12 | string name = 1; | ||||
13 | }; | ||||
Serge Bazanski | 16e4ba2 | 2018-10-07 00:22:52 +0100 | [diff] [blame^] | 14 | repeated SwitchPort managed_port = 3; |
Serge Bazanski | 9709eef | 2018-10-05 16:34:28 -0700 | [diff] [blame] | 15 | message Segment { |
16 | enum Type { | ||||
17 | TYPE_INVALID = 0; | ||||
18 | TYPE_VLAN = 1; | ||||
19 | } | ||||
20 | Type segment_type = 1; | ||||
21 | int32 vlan_id = 2; | ||||
22 | }; | ||||
Serge Bazanski | 16e4ba2 | 2018-10-07 00:22:52 +0100 | [diff] [blame^] | 23 | repeated Segment available_segment = 4; |
Serge Bazanski | 8d7843c | 2018-10-04 10:37:36 +0100 | [diff] [blame] | 24 | }; |
25 | |||||
Serge Bazanski | 9709eef | 2018-10-05 16:34:28 -0700 | [diff] [blame] | 26 | message Machine { |
Serge Bazanski | 8d7843c | 2018-10-04 10:37:36 +0100 | [diff] [blame] | 27 | string name = 1; |
Serge Bazanski | 9709eef | 2018-10-05 16:34:28 -0700 | [diff] [blame] | 28 | message Port { |
29 | string name = 1; | ||||
30 | }; | ||||
31 | repeated Port managed_port = 2; | ||||
Serge Bazanski | 8d7843c | 2018-10-04 10:37:36 +0100 | [diff] [blame] | 32 | }; |