summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/server/peer.go')
-rw-r--r--pkg/server/peer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go
index 4a7d5922..243a3dcc 100644
--- a/pkg/server/peer.go
+++ b/pkg/server/peer.go
@@ -57,6 +57,10 @@ func (pg *peerGroup) AddDynamicNeighbor(c *config.DynamicNeighbor) {
pg.dynamicNeighbors[c.Config.Prefix] = c
}
+func (pg *peerGroup) DeleteDynamicNeighbor(prefix string) {
+ delete(pg.dynamicNeighbors, prefix)
+}
+
func newDynamicPeer(g *config.Global, neighborAddress string, pg *config.PeerGroup, loc *table.TableManager, policy *table.RoutingPolicy) *peer {
conf := config.Neighbor{
Config: config.NeighborConfig{