summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 98085a10..95ebeb8b 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -20,6 +20,8 @@ package gobgpapi;
// Interface exported by the server.
service GobgpApi {
+ rpc GetGlobalConfig(Arguments) returns (Global) {}
+ rpc ModGlobalConfig(ModGlobalConfigArguments) returns (Error) {}
rpc GetNeighbors(Arguments) returns (stream Peer) {}
rpc GetNeighbor(Arguments) returns (Peer) {}
rpc ModNeighbor(ModNeighborArguments) returns(Error) {}
@@ -117,6 +119,11 @@ message ModPolicyAssignmentArguments {
PolicyAssignment assignment = 2;
}
+message ModGlobalConfigArguments {
+ Operation operation = 1;
+ Global global = 2;
+}
+
enum Resource {
GLOBAL = 0;
LOCAL = 1;
@@ -528,3 +535,8 @@ message Vrf {
repeated bytes import_rt = 3;
repeated bytes export_rt = 4;
}
+
+message Global {
+ uint32 as = 1;
+ string router_id = 2;
+}