From 52a0f719875dbe968e5943c8eacdaba2192855d4 Mon Sep 17 00:00:00 2001 From: Lamanna Date: Mon, 29 May 2017 21:46:53 -0400 Subject: Fix RouteDistinguisher parsing and VPNV6 VRF rib parsing --- server/server.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') diff --git a/server/server.go b/server/server.go index cee21283..0bd9c0d9 100644 --- a/server/server.go +++ b/server/server.go @@ -1123,6 +1123,9 @@ func (server *BgpServer) fixupApiPath(vrfId string, pathList []*table.Path) erro if vrfId != "" { vrf := server.globalRib.Vrfs[vrfId] + if vrf == nil { + return fmt.Errorf("vrf %s not found", vrfId) + } if err := vrf.ToGlobalPath(path); err != nil { return err } -- cgit v1.2.3