33 lines
726 B
Protocol Buffer
33 lines
726 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bgp.server;
|
|
|
|
// Top level BGP Server configuration.
|
|
message BgpConfig {
|
|
// The IPv4 address used as the router ID in BGP.
|
|
string router_id = 1;
|
|
// The local AS Number to use when communicating with peers.
|
|
uint32 local_asn = 2;
|
|
|
|
// Endpoints to listen on.
|
|
repeated TcpEndpoint listen_endpoints = 3;
|
|
|
|
// Peers configured on this server.
|
|
repeated Peer peers = 4;
|
|
}
|
|
|
|
// Represents an IP address and port that can be used for listening or connecting.
|
|
message TcpEndpoint {
|
|
// Address to listen on
|
|
string address = 1;
|
|
// Port to listen on.
|
|
uint32 port = 2;
|
|
}
|
|
|
|
// Configuration of a BGP peer.
|
|
message Peer {
|
|
string name = 1;
|
|
TcpEndpoint address = 2;
|
|
uint32 remote_asn = 3;
|
|
}
|