Add routing support to management service (#424)

Management will receive and store routes that are associated with a peer ID.
The routes are distributed to peers according to their ACLs.
This commit is contained in:
Maycon Santos
2022-08-18 18:22:15 +02:00
committed by GitHub
parent c39cd2f7b0
commit 4b34a6d6df
15 changed files with 1689 additions and 113 deletions

View File

@@ -176,6 +176,8 @@ message NetworkMap {
// Indicates whether remotePeers array is empty or not to bypass protobuf null and empty array equality.
bool remotePeersIsEmpty = 4;
// List of routes to be applied
repeated Route Routes = 5;
}
// RemotePeerConfig represents a configuration of a remote peer.
@@ -229,3 +231,13 @@ message ProviderConfig {
// An Audience for validation
string Audience = 4;
}
// Route represents a route.Route object
message Route {
string ID = 1;
string Prefix = 2;
int64 PrefixType = 3;
string Peer = 4;
int64 Metric = 5;
bool Masquerade = 6;
}