blob: 1843917e7e28f981c8e967a5640aa162362f1362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
syntax = "proto3";
option java_multiple_files = true;
option java_package = "moe.yuuta.dn42peering.agent.proto";
option java_outer_classname = "AgentProto";
package moe.yuuta.dn42peering.agent;
service Agent {
rpc Deploy (NodeConfig) returns (DeployResult) {}
}
message DeployResult {
repeated uint64 successfulIDs = 1;
repeated uint64 failedIDs = 2;
}
message NodeConfig {
Node node = 1;
repeated BGPConfig bgps = 2;
repeated WireGuardConfig wgs = 3;
}
message BGPConfig {
uint64 id = 1;
uint64 asn = 2;
bool mpbgp = 3;
string ipv4 = 4;
string ipv6 = 5;
string interface = 6;
}
message WireGuardConfig {
uint64 id = 1;
uint32 listenPort = 2;
string endpoint = 3;
string peerPubKey = 4;
string selfPrivKey = 5;
string selfPresharedSecret = 6;
string peerIPv4 = 7;
string peerIPv6 = 8;
string interface = 9;
}
message Node {
uint64 id = 1;
string ipv4 = 2;
string ipv6 = 3;
string ipv6NonLL = 4;
uint64 asn = 5;
}
|