diff options
author | Jeff Bean <bean@uber.com> | 2018-06-23 18:33:40 -0700 |
---|---|---|
committer | Jeff Bean <bean@uber.com> | 2018-06-23 18:38:23 -0700 |
commit | 72bbb9678381686acf14b0177dbf442a6761f41b (patch) | |
tree | e8f48b5097c6cedc392d0c24641c1058acf69bcb /server | |
parent | bc4854ce505e2f3fe434a1ce30526f77c4d1fef4 (diff) |
potential - Found a bug in the python tests
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go index c4e5f5de..31d2d42e 100644 --- a/server/server.go +++ b/server/server.go @@ -1711,8 +1711,8 @@ func (s *BgpServer) AddVrf(name string, id uint32, rd bgp.RouteDistinguisherInte AS: s.bgpConfig.Global.Config.As, LocalID: net.ParseIP(s.bgpConfig.Global.Config.RouterId).To4(), } - if pathList, e := s.globalRib.AddVrf(name, id, rd, im, ex, pi); e != nil { - return e + if pathList, err := s.globalRib.AddVrf(name, id, rd, im, ex, pi); err != nil { + return err } else if len(pathList) > 0 { s.propagateUpdate(nil, pathList) } |