summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-10-12 06:22:27 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-20 10:33:09 +0900
commit08d8503c6238ce69112ec331fe7f038690df8ca6 (patch)
tree8dae7be28576962845d60b4c2f31ec6eef029daa /api/gobgp.proto
parent6740e79c6d74b65a4586bb9c6b6cb67d0b2a665b (diff)
api: support per in/import/export policy configuration
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto17
1 files changed, 10 insertions, 7 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index cc58a3d9..f575d139 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -31,7 +31,7 @@ service GobgpApi {
rpc Enable(Arguments) returns (Error) {}
rpc Disable(Arguments) returns (Error) {}
rpc ModPath(stream ModPathArguments) returns (Error) {}
- rpc GetNeighborPolicy(Arguments) returns (ApplyPolicy) {}
+ rpc GetNeighborPolicy(PolicyArguments) returns (ApplyPolicy) {}
rpc ModNeighborPolicy(stream PolicyArguments) returns (stream Error) {}
rpc GetPolicyRoutePolicies(PolicyArguments) returns (stream PolicyDefinition) {}
rpc GetPolicyRoutePolicy(PolicyArguments) returns (PolicyDefinition) {}
@@ -259,13 +259,16 @@ message PolicyDefinition {
repeated Statement statement_list = 2;
}
+enum PolicyType {
+ IN = 0;
+ IMPORT = 1;
+ EXPORT = 2;
+}
+
message ApplyPolicy {
- repeated PolicyDefinition import_policies = 1;
- RouteAction default_import_policy = 2;
- repeated PolicyDefinition export_policies = 3;
- RouteAction default_export_policy = 4;
- repeated PolicyDefinition in_policies = 5;
- RouteAction default_in_policy = 6;
+ PolicyType type = 1;
+ repeated PolicyDefinition policies = 2;
+ RouteAction default = 3;
}
message MrtMessage {