Skip to content

Commit

Permalink
server: resolve next-hop with FRR/Zebra for VRF routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman Shaikh authored and fujita committed Jan 26, 2018
1 parent 3356b9b commit e36879f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/zclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,13 @@ func (z *zebraClient) loop() {
}
case *WatchEventUpdate:
if body, isWithdraw := newNexthopRegisterBody(msg.PathList, z.nhtManager); body != nil {
z.client.SendNexthopRegister(0, body, isWithdraw)
vrfId := uint16(0)
for _, vrf := range z.server.GetVrf() {
if vrf.Name == msg.Neighbor.Config.Vrf {
vrfId = uint16(vrf.Id)
}
}
z.client.SendNexthopRegister(vrfId, body, isWithdraw)
}
}
}
Expand Down

0 comments on commit e36879f

Please sign in to comment.