summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorLamanna <jlamanna@gmail.com>2017-05-29 21:46:53 -0400
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-01 12:46:40 +0900
commit52a0f719875dbe968e5943c8eacdaba2192855d4 (patch)
tree93f5edf2cca7b9261ec0bbb6473a37d059a04b69 /server/server.go
parent99336372ab2ae8a3b61af63abbcbd70223a1dfe1 (diff)
Fix RouteDistinguisher parsing and VPNV6 VRF rib parsing
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go3
1 files changed, 3 insertions, 0 deletions
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
}