diff options
Diffstat (limited to 'pkg/server/server.go')
-rw-r--r-- | pkg/server/server.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go index 25fd31cc..090d97b8 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -3002,6 +3002,13 @@ func (s *BgpServer) DeletePeer(ctx context.Context, r *api.DeletePeerRequest) er }, true) } +func (s *BgpServer) DeleteDynamicNeighbor(ctx context.Context, r *api.DeleteDynamicNeighborRequest) error { + return s.mgmtOperation(func() error { + s.peerGroupMap[r.PeerGroup].DeleteDynamicNeighbor(r.Prefix) + return nil + }, true) +} + func (s *BgpServer) updatePeerGroup(pg *config.PeerGroup) (needsSoftResetIn bool, err error) { name := pg.Config.PeerGroupName |