summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-03-10 15:47:20 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-03-14 21:52:32 +0900
commited0580dadf31bbe54d021e994e3726dda5cdc1a0 (patch)
tree8ad026720b1a0ed85686d0df279811498abe7c9b
parentcb5cf73311ceb050979a15e36f128f008c890650 (diff)
pkg/server: fix global rib summary command
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
-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 414e5dbf..92a0ca33 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -2468,7 +2468,7 @@ func (s *BgpServer) getAdjRibInfo(addr string, family bgp.RouteFamily, in bool)
}
func (s *BgpServer) GetTable(ctx context.Context, r *api.GetTableRequest) (*api.GetTableResponse, error) {
- if r == nil || r.Name == "" {
+ if r == nil {
return nil, fmt.Errorf("invalid request")
}
family := bgp.RouteFamily(0)