diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-26 19:24:46 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-26 19:24:46 -0800 |
commit | 7a2b3951160804c6895714621099168e8e56aa74 (patch) | |
tree | f847e72ac7fc6064774f5de1afca77c712d5809d /api/gobgp.proto | |
parent | 01157e466a510a9d7c7290c26a131734e7566261 (diff) |
add MOD_PATH API
Handle only one route unlike MOD_PATHS API. When the API returns an
uuid when a route is created. The uuid can be used to remove the route
later.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index c34ac23b..296d7f18 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -33,6 +33,7 @@ service GobgpApi { rpc Shutdown(Arguments) returns (Error) {} rpc Enable(Arguments) returns (Error) {} rpc Disable(Arguments) returns (Error) {} + rpc ModPath(ModPathArguments) returns (ModPathResponse) {} rpc ModPaths(stream ModPathsArguments) returns (Error) {} rpc MonitorBestChanged(Arguments) returns (stream Destination) {} rpc MonitorPeerState(Arguments) returns (stream Peer) {} @@ -71,6 +72,18 @@ message Arguments { string name = 3; } +message ModPathArguments { + Operation operation = 1; + Resource resource = 2; + string name = 3; + Path path = 4; + bytes uuid = 5; +} + +message ModPathResponse { + bytes uuid = 1; +} + message ModPathsArguments { Resource resource = 1; string name = 2; |