summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto10
1 files changed, 9 insertions, 1 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 98a72228..362c619a 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -32,6 +32,7 @@ service Grpc {
rpc Enable(Arguments) returns (Error) {}
rpc Disable(Arguments) returns (Error) {}
rpc ModPath(stream ModPathArguments) returns (stream Error) {}
+ rpc GetNeighborPolicy(Arguments) returns (ApplyPolicy) {}
rpc GetPolicyPrefixes(PolicyArguments) returns (stream PrefixSet) {}
rpc GetPolicyPrefix(PolicyArguments) returns (PrefixSet) {}
rpc ModPolicyPrefix(stream PolicyArguments) returns (stream Error) {}
@@ -382,7 +383,7 @@ message Statement {
Actions actions = 3;
}
-message PolicyDefinition{
+message PolicyDefinition {
string policy_definition_name = 1;
repeated Statement statement_list = 2;
}
@@ -390,3 +391,10 @@ message PolicyDefinition{
message RoutingPolicy {
repeated PolicyDefinition policy_difinition = 1;
}
+
+message ApplyPolicy {
+ repeated PolicyDefinition import_policies = 1;
+ int64 default_import_policy = 2;
+ repeated PolicyDefinition export_policies = 3;
+ int64 default_export_policy = 4;
+} \ No newline at end of file