Skip to content

Commit 380a476

Browse files
authored
update export polices onNodeUpdate so the routes are exchanged with new node immediatley (#441)
1 parent 8aa4324 commit 380a476

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/controllers/routing/bgp_peers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ func (nrc *NetworkRoutingController) OnNodeUpdate(obj interface{}) {
298298
return
299299
}
300300

301+
// update export policies so that NeighborSet gets updated with new set of nodes
302+
err := nrc.addExportPolicies()
303+
if err != nil {
304+
glog.Errorf("Error adding BGP export policies: %s", err.Error())
305+
}
306+
301307
if nrc.bgpEnableInternal {
302308
nrc.syncInternalPeers()
303309
}

0 commit comments

Comments
 (0)