summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/grpc_server.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index 34139d4e..af16dccf 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -1068,7 +1068,10 @@ func toStatementApi(s *config.Statement) *Statement {
if s.Actions.RouteDisposition.AcceptRoute {
return RouteAction_ACCEPT
}
- return RouteAction_REJECT
+ if s.Actions.RouteDisposition.RejectRoute {
+ return RouteAction_REJECT
+ }
+ return RouteAction_NONE
}(),
Community: func() *CommunityAction {
if len(s.Actions.BgpActions.SetCommunity.SetCommunityMethod.CommunitiesList) == 0 {