diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-27 16:54:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-30 15:05:09 +0900 |
commit | e3185194bb71697063a9304e03be3b9cdf850a96 (patch) | |
tree | 74f70b1eb273a39f62c61ddf2bb26237ffb1d54b /api/gobgp.proto | |
parent | b780fed28a735fa97cfbb220769f6f2082543674 (diff) |
server: enable to start without configuration file
add grpc api to configure global as/router-id
$ gobgp global as 65000 router-id 10.0.0.1
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 12 |
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; +} |