summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/server.go b/server/server.go
index 5d1e2892..76d214b8 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1380,11 +1380,11 @@ func (server *BgpServer) handleVrfRequest(req *GrpcRequest) []*table.Path {
}
goto END
case REQ_GET_VRF:
- l := make([]*api.Vrf, 0, len(server.globalRib.Vrfs))
+ l := make([]*table.Vrf, 0, len(server.globalRib.Vrfs))
for _, vrf := range server.globalRib.Vrfs {
- l = append(l, vrf.ToApiStruct())
+ l = append(l, vrf.Clone())
}
- result.Data = &api.GetVrfResponse{Vrfs: l}
+ result.Data = l
case REQ_ADD_VRF:
msgs, result.ResponseErr = server.handleAddVrfRequest(req)
result.Data = &api.AddVrfResponse{}