summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-11 15:31:31 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-20 22:26:48 +0900
commit444d48662ea7b2f8dcd56a5590d7b820552ad21a (patch)
tree08bc445bd773c2a16e577db85279b5d582ad384f /server/peer.go
parent9355715ea394cb232d933ca20e8365b126ae6302 (diff)
api/cli: add show global command
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go
index 68e67254..4160ba6e 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -242,7 +242,7 @@ func (peer *Peer) sendMessages(msgs []*bgp.BGPMessage) {
func (peer *Peer) handleREST(restReq *api.RestRequest) {
result := &api.RestResponse{}
switch restReq.RequestType {
- case api.REQ_LOCAL_RIB:
+ case api.REQ_LOCAL_RIB, api.REQ_GLOBAL_RIB:
// just empty so we use ipv4 for any route family
j, _ := json.Marshal(table.NewIPv4Table(0))
if peer.fsm.adminState != ADMIN_STATE_DOWN {