blob: b6c748bdd969e71d84993ca5d5710fce0a08f439 [file] [log] [blame]
// Copyright 2017 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
syntax = "proto3";
package crimson;
import "go.chromium.org/luci/machine-db/api/common/v1/states.proto";
// A VLAN in the database.
message VLAN {
// The ID of this VLAN. Uniquely identifies this VLAN.
int64 id = 1;
// An alias for this VLAN.
string alias = 2;
// A description of this VLAN.
string description = 3;
// The state of this VLAN.
common.State state = 4;
// The block of IPv4 addresses belonging to this VLAN.
string cidr_block = 5;
}
// A request to list VLANs in the database.
message ListVLANsRequest {
// The IDs of VLANs to retrieve.
repeated int64 ids = 1;
// The aliases of VLANs to retrieve.
repeated string aliases = 2;
}
// A response containing a list of VLANs in the database.
message ListVLANsResponse {
// The VLANs matching the request.
repeated VLAN vlans = 1;
}