summaryrefslogtreecommitdiffhomepage
path: root/pkg/server
diff options
context:
space:
mode:
authorHitoshi Irino <irino@sfc.wide.ad.jp>2019-03-02 17:49:45 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-03-14 21:20:31 +0900
commit4967c82a36943d90d1f732bbe4af65b4b39542dc (patch)
treef6c37c602e684ce1080157b891e528bb1a10de9a /pkg/server
parent3a79ad3fdcbb7af0b7911a9c610c6e7af970ad6d (diff)
Fix bug using variable of zclient in AddVrf of server.go.
Diffstat (limited to 'pkg/server')
-rw-r--r--pkg/server/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go
index 17937fff..71508666 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -2086,7 +2086,7 @@ func (s *BgpServer) AddVrf(ctx context.Context, r *api.AddVrfRequest) error {
s.propagateUpdate(nil, pathList)
}
if vrf, ok := s.globalRib.Vrfs[name]; ok {
- if s.zclient.mplsLabelRangeSize > 0 {
+ if s.bgpConfig.Zebra.Config.MplsLabelRangeSize > 0 {
go assignMplsLabel(s, vrf)
}
}