Serge Bazanski | 8d7843c | 2018-10-04 10:37:36 +0100 | [diff] [blame] | 1 | syntax = "proto3"; |
2 | |||||
3 | message Config { | ||||
4 | repeated Switch switch = 1; | ||||
5 | }; | ||||
6 | |||||
7 | message Switch { | ||||
8 | string name = 1; | ||||
9 | |||||
10 | enum Connector { | ||||
11 | CONNECTOR_INVALID = 0; | ||||
12 | CONNECTOR_M6220 = 1; | ||||
13 | CONNECTOR_ARISTA = 2; | ||||
14 | }; | ||||
15 | Connector connector = 2; | ||||
16 | string address = 3; | ||||
17 | repeated SwitchPort managed_port = 4; | ||||
18 | }; | ||||
19 | |||||
20 | message SwitchPort { | ||||
21 | string name = 1; | ||||
22 | }; |