blob: 9e5acb5f9b91ca74f0e3e5c7968eaeb899432c37 [file] [log] [blame]
Wei-Yu Chenad55cb82022-02-15 20:07:01 +08001// SPDX-FileCopyrightText: 2020 The Magma Authors.
2// SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
3//
4// SPDX-License-Identifier: BSD-3-Clause
5
6syntax = "proto3";
7
8import "orc8r/protos/common.proto";
9
10package magma.mconfig;
11option go_package = "magma/orc8r/lib/go/protos/mconfig";
12
13// ===========================================================================
14// Service-specific configs
15// ===========================================================================
16
17
18//------------------------------------------------------------------------------
19// Control Proxy configs
20//------------------------------------------------------------------------------
21message ControlProxy {
22 orc8r.LogLevel log_level = 1;
23}
24
25//------------------------------------------------------------------------------
26// MagmaD configs
27//------------------------------------------------------------------------------
28
29message ImageSpec {
30 string name = 1;
31 int64 order = 2;
32}
33
34message MagmaD {
35 orc8r.LogLevel log_level = 1;
36 // Interval for the gateways to send checkin rpc calls to the cloud.
37 int32 checkin_interval = 2;
38 // Checkin rpc timeout
39 int32 checkin_timeout = 3;
40 // Enables autoupgrading of the magma package
41 bool autoupgrade_enabled = 4;
42 // Interval to poll for package upgrades
43 int32 autoupgrade_poll_interval = 5;
44 // The magma package version the gateway should upgrade to
45 string package_version = 6;
46 // List of upgrade images
47 repeated ImageSpec images = 7;
48
49 // For streamer, should be left unused by gateway
50 string tier_id = 8;
51
52 map<string, bool> feature_flags = 9;
53
54 // List of dynamic_services
55 repeated string dynamic_services = 10;
56}
57
58//------------------------------------------------------------------------------
59// EventD configs
60//------------------------------------------------------------------------------
61message EventD {
62 orc8r.LogLevel log_level = 1;
63 // The verbosity level for events.
64 // All events less than or equal to this verbosity will be logged.
65 int32 event_verbosity = 2;
66}
67
68message DirectoryD {
69 orc8r.LogLevel log_level = 1;
70}
71
72//------------------------------------------------------------------------------
73// MetricsD configs
74//------------------------------------------------------------------------------
75message MetricsD {
76 orc8r.LogLevel log_level = 1;
77}
78
79//------------------------------------------------------------------------------
80// State configs
81//------------------------------------------------------------------------------
82message State {
83 orc8r.LogLevel log_level = 1;
84 uint32 sync_interval = 2;
85}
86
87//------------------------------------------------------------------------------
88// Fluent Bit configs
89//------------------------------------------------------------------------------
90message FluentBit {
91 map<string, string> extra_tags = 1;
92
93 uint32 throttle_rate = 10;
94 uint32 throttle_window = 11;
95 string throttle_interval = 12;
96
97 map<string, string> files_by_tag = 20;
98}
99
100//------------------------------------------------------------------------------
101// OpenVPN client configs
102//------------------------------------------------------------------------------
103message OpenVPN {
104 bool enable_shell_access = 1;
105}
106
107//------------------------------------------------------------------------------
108// CtraceD configs
109//------------------------------------------------------------------------------
110message CtraceD {
111 orc8r.LogLevel log_level = 1;
112}