summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/grpc_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/server/grpc_server.go')
-rw-r--r--pkg/server/grpc_server.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go
index a057d6ae..89bbb497 100644
--- a/pkg/server/grpc_server.go
+++ b/pkg/server/grpc_server.go
@@ -1167,6 +1167,11 @@ func toStatementApi(s *config.Statement) *api.Statement {
Self: true,
}
}
+ if string(s.Actions.BgpActions.SetNextHop) == "unchanged" {
+ return &api.NexthopAction{
+ Unchanged: true,
+ }
+ }
return &api.NexthopAction{
Address: string(s.Actions.BgpActions.SetNextHop),
}
@@ -1442,6 +1447,9 @@ func newNexthopActionFromApiStruct(a *api.NexthopAction) (*table.NexthopAction,
if a.Self {
return "self"
}
+ if a.Unchanged {
+ return "unchanged"
+ }
return a.Address
}(),
))