summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/zclient.go
diff options
context:
space:
mode:
authormageshgv <mageshgv@gmail.com>2019-10-04 10:24:19 -0700
committermageshgv <mageshgv@gmail.com>2019-10-04 18:19:05 -0700
commit0da37b02108d79fc902d1d6731c9245ff733dc84 (patch)
treed2191b4f25ff8be1525207352c8f440df8daac78 /pkg/server/zclient.go
parent6f3cb401644fcba0353ac06de261dd40100daa84 (diff)
Maintain unique vrf IDs in watchEventBestPath vrf map
Fixes missing route propagation to proper vrfs in zapi
Diffstat (limited to 'pkg/server/zclient.go')
-rw-r--r--pkg/server/zclient.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/zclient.go b/pkg/server/zclient.go
index 1c315a6c..390628f0 100644
--- a/pkg/server/zclient.go
+++ b/pkg/server/zclient.go
@@ -433,8 +433,8 @@ func (z *zebraClient) loop() {
for _, path := range msg.PathList {
vrfs := []uint32{0}
if msg.Vrf != nil {
- if v, ok := msg.Vrf[path.GetNlri().String()]; ok {
- vrfs = append(vrfs, v)
+ for vrfId := range msg.Vrf {
+ vrfs = append(vrfs, vrfId)
}
}
for _, i := range vrfs {