blob: 9e5acb5f9b91ca74f0e3e5c7968eaeb899432c37 [file] [log] [blame]
// SPDX-FileCopyrightText: 2020 The Magma Authors.
// SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
//
// SPDX-License-Identifier: BSD-3-Clause
syntax = "proto3";
import "orc8r/protos/common.proto";
package magma.mconfig;
option go_package = "magma/orc8r/lib/go/protos/mconfig";
// ===========================================================================
// Service-specific configs
// ===========================================================================
//------------------------------------------------------------------------------
// Control Proxy configs
//------------------------------------------------------------------------------
message ControlProxy {
orc8r.LogLevel log_level = 1;
}
//------------------------------------------------------------------------------
// MagmaD configs
//------------------------------------------------------------------------------
message ImageSpec {
string name = 1;
int64 order = 2;
}
message MagmaD {
orc8r.LogLevel log_level = 1;
// Interval for the gateways to send checkin rpc calls to the cloud.
int32 checkin_interval = 2;
// Checkin rpc timeout
int32 checkin_timeout = 3;
// Enables autoupgrading of the magma package
bool autoupgrade_enabled = 4;
// Interval to poll for package upgrades
int32 autoupgrade_poll_interval = 5;
// The magma package version the gateway should upgrade to
string package_version = 6;
// List of upgrade images
repeated ImageSpec images = 7;
// For streamer, should be left unused by gateway
string tier_id = 8;
map<string, bool> feature_flags = 9;
// List of dynamic_services
repeated string dynamic_services = 10;
}
//------------------------------------------------------------------------------
// EventD configs
//------------------------------------------------------------------------------
message EventD {
orc8r.LogLevel log_level = 1;
// The verbosity level for events.
// All events less than or equal to this verbosity will be logged.
int32 event_verbosity = 2;
}
message DirectoryD {
orc8r.LogLevel log_level = 1;
}
//------------------------------------------------------------------------------
// MetricsD configs
//------------------------------------------------------------------------------
message MetricsD {
orc8r.LogLevel log_level = 1;
}
//------------------------------------------------------------------------------
// State configs
//------------------------------------------------------------------------------
message State {
orc8r.LogLevel log_level = 1;
uint32 sync_interval = 2;
}
//------------------------------------------------------------------------------
// Fluent Bit configs
//------------------------------------------------------------------------------
message FluentBit {
map<string, string> extra_tags = 1;
uint32 throttle_rate = 10;
uint32 throttle_window = 11;
string throttle_interval = 12;
map<string, string> files_by_tag = 20;
}
//------------------------------------------------------------------------------
// OpenVPN client configs
//------------------------------------------------------------------------------
message OpenVPN {
bool enable_shell_access = 1;
}
//------------------------------------------------------------------------------
// CtraceD configs
//------------------------------------------------------------------------------
message CtraceD {
orc8r.LogLevel log_level = 1;
}