diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-01 14:57:51 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-02 08:53:04 +0900 |
commit | ff26d4e93bf728b4fb312a2f66b1becbd2675c9f (patch) | |
tree | c0128bcba14072fbd41885ff437252d4d008a23d /api/gobgp.proto | |
parent | 3dfb941b336dc72bcd6fcadfd7b55f7c67ffcc4e (diff) |
api/server: refine GetRib API
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index 2857cf45..ab9e0d2d 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -25,7 +25,7 @@ service GobgpApi { rpc GetNeighbors(Arguments) returns (stream Peer) {} rpc GetNeighbor(Arguments) returns (Peer) {} rpc ModNeighbor(ModNeighborArguments) returns(Error) {} - rpc GetRib(Arguments) returns (stream Destination) {} + rpc GetRib(Table) returns (Table) {} rpc Reset(Arguments) returns (Error) {} rpc SoftReset(Arguments) returns (Error) {} rpc SoftResetIn(Arguments) returns (Error) {} @@ -172,6 +172,13 @@ message Destination { repeated Path paths = 2; } +message Table { + Resource type = 1; + string name = 2; + uint32 family = 3; + repeated Destination destinations = 4; +} + message Peer { AddPaths addpaths = 1; AfiSafis afisafis = 2; |