summaryrefslogtreecommitdiffhomepage
path: root/gobgpd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r--gobgpd/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 4b4b5047..caf1793f 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -266,6 +266,12 @@ func main() {
}
updatePolicy = updatePolicy || u
}
+ for _, dn := range newConfig.DynamicNeighbors {
+ log.Infof("Dynamic Neighbor %s is added to PeerGroup %s", dn.Config.Prefix, dn.Config.PeerGroup)
+ if err := bgpServer.AddDynamicNeighbor(&dn); err != nil {
+ log.Warn(err)
+ }
+ }
for i, p := range added {
log.Infof("Peer %v is added", p.State.NeighborAddress)
if err := bgpServer.AddNeighbor(&added[i]); err != nil {