2018-10-04 09:37:36 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message Config {
|
|
|
|
repeated Switch switch = 1;
|
2018-10-05 23:34:28 +00:00
|
|
|
repeated Machine machine = 2;
|
2018-10-04 09:37:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
message Switch {
|
|
|
|
string name = 1;
|
|
|
|
|
|
|
|
enum Connector {
|
|
|
|
CONNECTOR_INVALID = 0;
|
|
|
|
CONNECTOR_M6220 = 1;
|
|
|
|
CONNECTOR_ARISTA = 2;
|
|
|
|
};
|
|
|
|
Connector connector = 2;
|
|
|
|
string address = 3;
|
2018-10-05 23:34:28 +00:00
|
|
|
message SwitchPort {
|
|
|
|
string name = 1;
|
|
|
|
};
|
2018-10-04 09:37:36 +00:00
|
|
|
repeated SwitchPort managed_port = 4;
|
2018-10-05 23:34:28 +00:00
|
|
|
message Segment {
|
|
|
|
enum Type {
|
|
|
|
TYPE_INVALID = 0;
|
|
|
|
TYPE_VLAN = 1;
|
|
|
|
}
|
|
|
|
Type segment_type = 1;
|
|
|
|
int32 vlan_id = 2;
|
|
|
|
};
|
|
|
|
repeated Segment available_segment = 5;
|
2018-10-04 09:37:36 +00:00
|
|
|
};
|
|
|
|
|
2018-10-05 23:34:28 +00:00
|
|
|
message Machine {
|
2018-10-04 09:37:36 +00:00
|
|
|
string name = 1;
|
2018-10-05 23:34:28 +00:00
|
|
|
message Port {
|
|
|
|
string name = 1;
|
|
|
|
};
|
|
|
|
repeated Port managed_port = 2;
|
2018-10-04 09:37:36 +00:00
|
|
|
};
|