Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | // 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 | |
| 6 | syntax = "proto3"; |
| 7 | |
| 8 | package magma.orc8r; |
| 9 | option go_package = "magma/orc8r/lib/go/protos"; |
| 10 | |
| 11 | message Void { |
| 12 | } |
| 13 | |
| 14 | // ------------------------------------------------------------------------------- |
| 15 | // Bytes is a special message type used to marshal & unmarshal unknown types as is |
| 16 | // ------------------------------------------------------------------------------- |
| 17 | message Bytes { |
| 18 | bytes val = 1; |
| 19 | } |
| 20 | |
| 21 | // -------------------------------------------------------------------------- |
| 22 | // NetworkID uniquely identifies the network |
| 23 | // -------------------------------------------------------------------------- |
| 24 | message NetworkID { |
| 25 | string id = 1; |
| 26 | } |
| 27 | |
| 28 | // -------------------------------------------------------------------------- |
| 29 | // IDList is a generic definition of an array of IDs (network, gateway, etc.) |
| 30 | // -------------------------------------------------------------------------- |
| 31 | message IDList { |
| 32 | repeated string ids = 1; |
| 33 | } |
| 34 | |
| 35 | // -------------------------------------------------------------------------- |
| 36 | // Logging levels |
| 37 | // -------------------------------------------------------------------------- |
| 38 | enum LogLevel { |
| 39 | DEBUG = 0; |
| 40 | INFO = 1; |
| 41 | WARNING = 2; |
| 42 | ERROR = 3; |
| 43 | FATAL = 4; |
| 44 | } |